diff options
| author | Jeff Carr <[email protected]> | 2025-10-24 11:28:43 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-24 11:28:43 -0500 |
| commit | 88d0ce908c76d98a29ab5ffc3417248f951493fb (patch) | |
| tree | b50a0917f1a1d713fdb5addc6e65dd2842b98fe9 /argv.parseOsArgs.go | |
| parent | 2b46985ae8def4ff5779fbc027a6ddbe7a1a6a8d (diff) | |
removing log from herev0.0.44
Diffstat (limited to 'argv.parseOsArgs.go')
| -rw-r--r-- | argv.parseOsArgs.go | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/argv.parseOsArgs.go b/argv.parseOsArgs.go index ac5be15..bf73744 100644 --- a/argv.parseOsArgs.go +++ b/argv.parseOsArgs.go @@ -6,8 +6,6 @@ import ( "fmt" "os" "strings" - - "go.wit.com/log" ) // todo: this is wrong @@ -82,20 +80,16 @@ func (pb *Argv) parseOsArgs() { } } - // wtf is this. I've forgotten. todo: figure this out - if len(os.Args) > 1 && os.Args[1] == pb.AppInfo.APPNAME { - me.isAuto = true - parts := strings.Split(os.Getenv("COMP_LINE"), " ") - me.debug = true - log.Fprintf(os.Stderr, "\n") - pb.Debugf("MATCH Partial os.Args=%v COMP_LINE=%v", os.Args, os.Getenv("COMP_LINE")) - // log.Fprintf(os.Stdout, "jcarr") - if len(parts) > 0 { - // pb.Arg0 = parts[0] + /* + // wtf is this. I've forgotten. todo: figure this out + if len(os.Args) > 1 && os.Args[1] == pb.AppInfo.APPNAME { + me.isAuto = true + // parts := strings.Split(os.Getenv("COMP_LINE"), " ") + me.debug = true + pb.Debugf("MATCH Partial os.Args=%v COMP_LINE=%v", os.Args, os.Getenv("COMP_LINE")) + os.Exit(0) } - // pb.Arg1 = os.Args[1] - os.Exit(0) - } + */ // print the version and exit if len(os.Args) > 1 && os.Args[1] == "--version" { |
