mirror of
https://github.com/charmbracelet/glow
synced 2024-11-10 06:04:18 +00:00
Make --force-key
/-f
a persistent flag, like --identity
This commit is contained in:
parent
0407c7d990
commit
28f8f185d7
1 changed files with 2 additions and 1 deletions
3
main.go
3
main.go
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue