Skip to content

Commit

Permalink
fix: don't allow flags after the GitHub handle
Browse files Browse the repository at this point in the history
This is inline with urfave/cli latest changes in order to be closer to
POSIX compliance: <cmd> <flags> <argument>
  • Loading branch information
CamiloGarciaLaRotta committed May 1, 2020
1 parent 0702bff commit 3dfffcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ GLOBAL OPTIONS:{{if .VisibleFlags}}
// generateGIF creates a GIF of the activities of the input user
func generateGIF(c *cli.Context) error {
var userHandle string
if c.NArg() > 0 {
if c.NArg() == 1 {
userHandle = c.Args().Get(0)
} else {
return cli.ShowAppHelp(c)
Expand Down

0 comments on commit 3dfffcd

Please sign in to comment.