File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments