From 09e0ee4deca1cc6587fb3441dbb10f6e67b7c125 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Fri, 16 Apr 2021 00:27:06 +0200 Subject: [PATCH] shorthand for config --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 080f3cc..ecb942c 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -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)