From 143b13af2c6f1437e599eed626d170b87e542138 Mon Sep 17 00:00:00 2001 From: Stavros Date: Wed, 22 Jan 2025 21:50:01 +0200 Subject: [PATCH] refactor: remove short flags --- cmd/root.go | 2 +- cmd/user/create/create.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index ba7b0d7..576fc82 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -100,7 +100,7 @@ func HandleError(err error, msg string) { func init() { rootCmd.AddCommand(cmd.UserCmd()) viper.AutomaticEnv() - rootCmd.Flags().IntP("port", "p", 3000, "Port to run the server on.") + rootCmd.Flags().Int("port", 3000, "Port to run the server on.") rootCmd.Flags().String("address", "0.0.0.0", "Address to bind the server to.") rootCmd.Flags().String("secret", "", "Secret to use for the cookie.") rootCmd.Flags().String("app-url", "", "The tinyauth URL.") diff --git a/cmd/user/create/create.go b/cmd/user/create/create.go index d250cf3..21dca46 100644 --- a/cmd/user/create/create.go +++ b/cmd/user/create/create.go @@ -76,8 +76,8 @@ var CreateCmd = &cobra.Command{ } func init() { - CreateCmd.Flags().BoolVarP(&interactive, "interactive", "i", false, "Create a user interactively") - CreateCmd.Flags().BoolVarP(&docker, "docker", "d", false, "Format output for docker") - CreateCmd.Flags().StringVarP(&username, "username", "u", "", "Username") - CreateCmd.Flags().StringVarP(&password, "password", "p", "", "Password") + CreateCmd.Flags().BoolVar(&interactive, "interactive", false, "Create a user interactively") + CreateCmd.Flags().BoolVar(&docker, "docker", false, "Format output for docker") + CreateCmd.Flags().StringVar(&username, "username", "", "Username") + CreateCmd.Flags().StringVar(&password, "password", "", "Password") } \ No newline at end of file