Skip to content

Commit

Permalink
Show help message when no repo given
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Nov 23, 2021
1 parent 0da65f0 commit 122eef7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/args.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ func ParseArgs(args []string, help string, version string) (*AppArgs, error) {
}

if repo == "" {
return nil, fmt.Errorf("missing repo")
fmt.Printf(help, version)
fmt.Println("\nmissing repo")
os.Exit(1)
}

appArgs.repo = repo
Expand Down

0 comments on commit 122eef7

Please sign in to comment.