Skip to content

Commit

Permalink
refactor: Use -f option for key files
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFantom committed Dec 22, 2022
1 parent d6817cc commit 6387d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/sshare/sshare.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func main() {
func init() {
rootCmd.PersistentFlags().StringVarP(&sshAgentPath, "agent", "a", sshAgentPath, "path to the target ssh Agent socket")
rootCmd.PersistentFlags().StringVarP(&sshAgentPass, "passphrase", "p", sshAgentPass, "passphrase for the ssh agent")
rootCmd.PersistentFlags().StringArrayVarP(&keyFilepaths, "key-file", "k", keyFilepaths, "additional key file(s) to include in the generated authorized_keys")
rootCmd.PersistentFlags().StringArrayVarP(&keyFilepaths, "key-file", "f", keyFilepaths, "additional key file(s) to include in the generated authorized_keys")
rootCmd.PersistentFlags().IntVarP(&transferDownloads, "max-downloads", "m", 10, "maximum number of times any content shared can be downloaded")
rootCmd.PersistentFlags().IntVarP(&transferDays, "max-days", "d", 2, "number of days that the content will remain available via transfer.sh")
}

0 comments on commit 6387d3f

Please sign in to comment.