forked from toolshed/abra
feat: function to display help, error, & exit
This commit is contained in:
@ -2,6 +2,7 @@ package cli
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"path"
|
||||
"sort"
|
||||
@ -54,7 +55,7 @@ on your $PATH.
|
||||
Action: func(c *cli.Context) error {
|
||||
appType := c.Args().First()
|
||||
if appType == "" {
|
||||
cli.ShowSubcommandHelp(c)
|
||||
errorExit(c, "new", errors.New("no app type provided"))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user