diff options
author | Christian Rocha <christian@rocha.is> | 2020-05-25 11:25:35 -0400 |
---|---|---|
committer | Christian Muehlhaeuser <muesli@gmail.com> | 2020-10-05 13:44:20 +0200 |
commit | 28f8f185d7cb047d4434e592d8be909170501dfd (patch) | |
tree | efda23f67f4beeab399a28abbcac9bc3bbd60242 /main.go | |
parent | 0407c7d9904563d5a1b2e190c855773f12945718 (diff) |
Make `--force-key`/`-f` a persistent flag, like `--identity`
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -279,7 +279,8 @@ func init() { rootCmd.Flags().UintVarP(&width, "width", "w", 0, "word-wrap at width") rootCmd.PersistentFlags().StringVarP(&identityFile, "identity", "i", "", "path to identity file (that is, an ssh private key)") - rootCmd.Flags().BoolVarP(&forceKey, "force-key", "f", false, "for the use of the SSH key on disk (that is, ignore ssh-agent)") + rootCmd.PersistentFlags().BoolVarP(&forceKey, "force-key", "f", false, "for the use of the SSH key on disk (that is, ignore ssh-agent)") + stashCmd.PersistentFlags().StringVarP(&memo, "memo", "m", "", "memo/note for stashing") rootCmd.AddCommand(stashCmd, stashListCmd, stashGetCmd, stashDeleteCmd) |