chore: update comment
parent
90e0bb0a6b
commit
6b8625be56
|
@ -35,6 +35,11 @@ func (a *action) Run(c *cli.Context) error {
|
|||
return a.RunHelp(c)
|
||||
}
|
||||
|
||||
// Empty args
|
||||
if c.Args().Len() == 0 {
|
||||
return a.RunHelp(c)
|
||||
}
|
||||
|
||||
f := imports.NewFormmater(
|
||||
imports.FormatterWithList(a.flags.list),
|
||||
imports.FormatterWithWrite(a.flags.write),
|
||||
|
|
|
@ -35,6 +35,7 @@ type App struct {
|
|||
func NewApp() *App {
|
||||
a := &action{}
|
||||
|
||||
// TODO: hide commands, show args usage
|
||||
cliApp := &cli.App{
|
||||
Name: name,
|
||||
Usage: usage,
|
||||
|
|
Loading…
Reference in New Issue