Skip to content

Commit

Permalink
fix(cmd): rename flag bin to n
Browse files Browse the repository at this point in the history
  • Loading branch information
beetcb committed Feb 9, 2022
1 parent 8299782 commit 812fbfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ gh-dl handles archived or compressed file as well`,
if err != nil {
panic(err)
}
binaryNameFlag, err := cmd.Flags().GetString("bin")
binaryNameFlag, err := cmd.Flags().GetString("name")
if err != nil {
panic(err)
}
Expand All @@ -42,7 +42,7 @@ func main() {
}

func init() {
rootCmd.PersistentFlags().StringP("bin", "b", "", "specify bin file name")
rootCmd.PersistentFlags().StringP("name", "n", "", "specify binary file name")
}

// parse user/repo[#tagname] arg
Expand Down

0 comments on commit 812fbfd

Please sign in to comment.