summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index c8d5e80..e972da0 100644
--- a/main.go
+++ b/main.go
@@ -21,14 +21,14 @@ func main() {
me.argv = argvpb.Autocomplete(&argv) // adds shell auto complete to go-args
me.homedir, _ = os.UserHomeDir() // store shortcut here todo: add better logic
- if me.argv.Cmd == "" {
+ if me.argv.GetCmd() == "" {
// user didn't enter a sub command
// doDefaultBehavior()
me.argv.GoodExit("do what?")
}
pwd, _ := os.Getwd()
- setTitle(log.Sprintf("wit %s %s", me.argv.Cmd, pwd))
+ setTitle(log.Sprintf("wit %s %s", me.argv.GetCmd(), pwd))
// Standard subcommand handling starts here
var s string