From 22be26431e918fa10142ddb471ffaf151d9877a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Mon, 16 Aug 2021 22:28:39 +0200 Subject: [PATCH] Have `--codespace ` flag be consistent across commands --- cmd/ghcs/ports.go | 2 +- cmd/ghcs/ssh.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/ghcs/ports.go b/cmd/ghcs/ports.go index 613a1834b..1d5d5ff9f 100644 --- a/cmd/ghcs/ports.go +++ b/cmd/ghcs/ports.go @@ -34,7 +34,7 @@ func NewPortsCmd() *cobra.Command { }, } - portsCmd.Flags().StringVarP(&opts.CodespaceName, "name", "n", "", "Name of Codespace to use") + portsCmd.Flags().StringVarP(&opts.CodespaceName, "codespace", "c", "", "The `name` of the Codespace to use") portsCmd.Flags().BoolVar(&opts.AsJSON, "json", false, "Output as JSON") portsCmd.AddCommand(NewPortsPublicCmd()) diff --git a/cmd/ghcs/ssh.go b/cmd/ghcs/ssh.go index 372061c55..b6bbe254d 100644 --- a/cmd/ghcs/ssh.go +++ b/cmd/ghcs/ssh.go @@ -29,7 +29,7 @@ func NewSSHCmd() *cobra.Command { sshCmd.Flags().StringVarP(&sshProfile, "profile", "", "", "SSH Profile") sshCmd.Flags().IntVarP(&sshServerPort, "server-port", "", 0, "SSH Server Port") - sshCmd.Flags().StringVarP(&codespaceName, "codespace", "c", "", "Codespace Name") + sshCmd.Flags().StringVarP(&codespaceName, "codespace", "c", "", "The `name` of the Codespace to use") return sshCmd }