mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-25 02:54:03 -08:00
refactor(cli): hide global option --silent
This commit is contained in:
parent
31fa1f37ab
commit
3e06366efa
|
@ -41,12 +41,12 @@ func Execute() {
|
|||
|
||||
func init() {
|
||||
RootCmd.PersistentFlags().StringVarP(&configFlag, "config", "c", "", "config file path")
|
||||
RootCmd.PersistentFlags().BoolVar(&silent, "silent", false, "do not print anything")
|
||||
|
||||
// Deprecated flags, should be kept to avoid breaking CLI integration.
|
||||
RootCmd.Flags().BoolVarP(&initialize, "init", "i", false, "init")
|
||||
RootCmd.Flags().StringVarP(&shellName, "shell", "s", "", "shell")
|
||||
|
||||
// Hide flags that are deprecated or for internal use only.
|
||||
RootCmd.PersistentFlags().BoolVar(&silent, "silent", false, "do not print anything")
|
||||
_ = RootCmd.Flags().MarkHidden("silent")
|
||||
_ = RootCmd.PersistentFlags().MarkHidden("silent")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue