Skip to content

Commit 48ac762

Browse files
committed
fix: issues with cantil
1 parent 4362660 commit 48ac762

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

utils/cantil/cli.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func (p *Parser) Run(args []string) error {
6060
action_nickname = args[0]
6161
}
6262

63-
fmt.Println("act:", action_nickname)
63+
fmt.Println("cantil cmd invoked:", action_nickname)
6464

6565
info := ActionInfo{CmdArgs: args}
6666

@@ -99,6 +99,11 @@ func (p *Parser) PrintHelp() {
9999
}
100100
}
101101

102+
fmt.Println()
103+
fmt.Println("Possible cli args ( by https://pkg.go.dev/flag ):")
104+
fmt.Println("Input cli args BEFORE final non flag command")
105+
flag.PrintDefaults()
106+
102107
fmt.Println()
103108
fmt.Println("Possible commands:")
104109
for _, command := range p.actions_by_nick {
@@ -108,9 +113,6 @@ func (p *Parser) PrintHelp() {
108113
fmt.Println("default command: ", *p.DefaultAction)
109114
}
110115

111-
fmt.Println("Possible cli args:")
112-
flag.PrintDefaults()
113-
114116
fmt.Println()
115117
fmt.Println("your called args", os.Args[1:])
116118
fmt.Println("command parent args:", p.ParentArgs)

0 commit comments

Comments
 (0)