summaryrefslogtreecommitdiff
path: root/argv.parseOsArgs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-29 01:45:59 -0500
committerJeff Carr <[email protected]>2025-10-29 01:45:59 -0500
commit9266a4798e43c989002602980431b0ea8e23cc60 (patch)
tree118ad5f79b5c9ecb6c6b9f68ff845845473cb256 /argv.parseOsArgs.go
parent2d5174830aead2aa4e8dcbbb4de78a122d38835d (diff)
better logic & stops doing things when nothing changesv0.0.49
Diffstat (limited to 'argv.parseOsArgs.go')
-rw-r--r--argv.parseOsArgs.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/argv.parseOsArgs.go b/argv.parseOsArgs.go
index 002630a..654ab0a 100644
--- a/argv.parseOsArgs.go
+++ b/argv.parseOsArgs.go
@@ -86,6 +86,10 @@ func (pb *Argv) parseOsArgs() {
if os.Args[1] != "--auto-complete" {
// if the first arg is not --auto-complete, then don't go any farther
for _, s := range os.Args[1:] {
+ if s == "--argvdebug" {
+ me.debug = true
+ continue
+ }
pb.Real = append(pb.Real, s)
}
// found the subcommand