Skip to content

Commit

Permalink
Removes -p shorthand for --password flag
Browse files Browse the repository at this point in the history
This flag should not be used in production environments and a shorthand
makes it too comfortable to use.
  • Loading branch information
ma-hartma authored and muesli committed Oct 4, 2020
1 parent 7f78975 commit 665828a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/knoxite/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* knoxite
* Copyright (c) 2016-2020, Christian Muehlhaeuser <muesli@gmail.com>
* Copyright (c) 2020, Nicolas Martin <penguwin@penguwin.eu>
* Copyright (c) 2020, Matthias Hartmann <mahartma@mahartma.com>
*
* For license see LICENSE
*/
Expand Down Expand Up @@ -70,7 +71,7 @@ func main() {

RootCmd.PersistentFlags().StringVarP(&globalOpts.Repo, "repo", "r", "", "Repository directory to backup to/restore from (default: current working dir)")
RootCmd.PersistentFlags().StringVarP(&globalOpts.Alias, "alias", "R", "", "Repository alias to backup to/restore from")
RootCmd.PersistentFlags().StringVarP(&globalOpts.Password, "password", "p", "", "Password to use for data encryption")
RootCmd.PersistentFlags().StringVar(&globalOpts.Password, "password", "", "Password to use for data encryption")
RootCmd.PersistentFlags().StringVarP(&globalOpts.ConfigURL, "configURL", "C", config.DefaultPath(), "Path to the configuration file")
RootCmd.PersistentFlags().StringVarP(&globalOpts.Verbosity, "verbose", "v", "Warning", "Verbose output: possible levels are Debug, Info and Warning")

Expand Down

0 comments on commit 665828a

Please sign in to comment.