summaryrefslogtreecommitdiff
path: root/argv.parseOsArgs.go
diff options
context:
space:
mode:
Diffstat (limited to 'argv.parseOsArgs.go')
-rw-r--r--argv.parseOsArgs.go24
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" {