Skip to content

Commit

Permalink
fix: Use SliceVar to allow comma sep in CLI flags
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFantom committed Jan 28, 2023
1 parent a33805e commit e0d15dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/sshare/sshare.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ func init() {
rootCmd.Flags().StringVarP(&sshAgentPath, "agent", "a", sshAgentPath, "path to the target ssh agent socket ($SSH_AUTH_SOCK)")
rootCmd.Flags().StringVarP(&sshAgentPass, "passphrase", "p", sshAgentPass, "passphrase for the ssh agent")
rootCmd.Flags().StringVarP(&githubToken, "github-token", "g", githubToken, "github token with permission to read ssh keys")
rootCmd.Flags().StringArrayVarP(&keyFilepaths, "key-file", "f", keyFilepaths, "additional key file(s) to include in the generated authorized_keys")
rootCmd.Flags().StringArrayVarP(&rawKeys, "key", "k", rawKeys, "additional keys to include in the generated authorized_keys")
rootCmd.Flags().StringSliceVarP(&keyFilepaths, "key-file", "f", keyFilepaths, "additional key file(s) to include in the generated authorized_keys")
rootCmd.Flags().StringSliceVarP(&rawKeys, "key", "k", rawKeys, "additional keys to include in the generated authorized_keys")
rootCmd.Flags().IntVarP(&transferDownloads, "max-downloads", "m", 10, "maximum number of times any content shared can be downloaded")
rootCmd.Flags().IntVarP(&transferDays, "max-days", "d", 2, "number of days that the content will remain available via transfer.sh")
rootCmd.AddCommand(deleteCmd)
Expand Down

0 comments on commit e0d15dc

Please sign in to comment.