diff --git a/cli/export.go b/cli/export.go index 82d13ea9..48020890 100644 --- a/cli/export.go +++ b/cli/export.go @@ -132,7 +132,7 @@ var exportCmd = &cobra.Command{ func init() { - exportCmd.PersistentFlags().StringVar(&opts.Auth.Auth, "auth", "root:root", "Master authentication details to use when connecting.") + exportCmd.PersistentFlags().StringVarP(&opts.Auth.Auth, "auth", "a", "root:root", "Master authentication details to use when connecting.") exportCmd.PersistentFlags().StringVar(&opts.DB.Host, "host", "surreal.io", "Database server host to connect to.") exportCmd.PersistentFlags().StringVar(&opts.DB.Port, "port", "80", "Database server port to connect to.") diff --git a/cli/import.go b/cli/import.go index a39e9645..3bd472ce 100644 --- a/cli/import.go +++ b/cli/import.go @@ -122,7 +122,7 @@ var importCmd = &cobra.Command{ func init() { - importCmd.PersistentFlags().StringVar(&opts.Auth.Auth, "auth", "root:root", "Master authentication details to use when connecting.") + importCmd.PersistentFlags().StringVarP(&opts.Auth.Auth, "auth", "a", "root:root", "Master authentication details to use when connecting.") importCmd.PersistentFlags().StringVar(&opts.DB.Host, "host", "surreal.io", "Database server host to connect to.") importCmd.PersistentFlags().StringVar(&opts.DB.Port, "port", "80", "Database server port to connect to.") diff --git a/cli/sql.go b/cli/sql.go index 7283a0a5..496cca4e 100644 --- a/cli/sql.go +++ b/cli/sql.go @@ -140,7 +140,7 @@ var sqlCmd = &cobra.Command{ func init() { - sqlCmd.PersistentFlags().StringVar(&opts.Auth.Auth, "auth", "root:root", "Master authentication details to use when connecting.") + sqlCmd.PersistentFlags().StringVarP(&opts.Auth.Auth, "auth", "a", "root:root", "Master authentication details to use when connecting.") sqlCmd.PersistentFlags().StringVar(&opts.DB.Host, "host", "surreal.io", "Database server host to connect to.") sqlCmd.PersistentFlags().StringVar(&opts.DB.Port, "port", "80", "Database server port to connect to.")