shorthand for config

This commit is contained in:
cupcakearmy 2021-04-16 00:27:06 +02:00
parent 952334fecb
commit 09e0ee4dec
No known key found for this signature in database
GPG Key ID: D28129AE5654D9D9

View File

@ -49,7 +49,7 @@ func Execute() {
}
func init() {
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.autorestic.yml or ./.autorestic.yml)")
rootCmd.PersistentFlags().StringVarP(&cfgFile, "config", "c", "", "config file (default is $HOME/.autorestic.yml or ./.autorestic.yml)")
rootCmd.PersistentFlags().BoolVar(&internal.CI, "ci", false, "CI mode disabled interactive mode and colors and enables verbosity")
rootCmd.PersistentFlags().BoolVar(&internal.VERBOSE, "verbose", false, "verbose mode")
cobra.OnInitialize(initConfig)