Skip to content

Commit 3b2a886

Browse files
committed
refactor: remove host option short flag for clarity and consistency
- Change the short flag for the host option from 'h' to an empty string Signed-off-by: ysicing <[email protected]>
1 parent 1ca11c8 commit 3b2a886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/pkg/cli/check/mysql.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func CheckMySQLCommand(f factory.Factory) *cobra.Command {
5858
return
5959
},
6060
}
61-
cmd.Flags().StringVarP(&host, "host", "h", "localhost", "MySQL host")
61+
cmd.Flags().StringVarP(&host, "host", "", "localhost", "MySQL host")
6262
cmd.Flags().IntVarP(&port, "port", "", 3306, "MySQL port")
6363
cmd.Flags().StringVarP(&username, "username", "u", "root", "MySQL username")
6464
cmd.Flags().StringVarP(&password, "password", "p", "", "MySQL password")

0 commit comments

Comments
 (0)