Skip to content

Commit

Permalink
docs: fix '--user' usage string
Browse files Browse the repository at this point in the history
  • Loading branch information
moyiz committed Jan 6, 2024
1 parent b3ac73a commit 8f2765a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func init() {
cobra.OnInitialize(func() { config.LoadFiles(AllConfigFiles()...) })
rootCmd.PersistentFlags().StringP("config", "c", "", "Path of the config file to use")
rootCmd.PersistentFlags().BoolP("local", "l", false, "Use local config (.na.yaml)")
rootCmd.PersistentFlags().BoolP("user", "u", false, "Use user config (${XDG_CONF_HOME}/na/na.yaml)")
rootCmd.PersistentFlags().BoolP("user", "u", false, "Use user config ($XDG_CONFIG_HOME/na/na.yaml)")
rootCmd.MarkFlagsMutuallyExclusive("local", "config")
rootCmd.AddCommand(runCmd, addCmd, removeCmd, listCmd, docsCmd)
}
Expand Down

0 comments on commit 8f2765a

Please sign in to comment.