Have --codespace <name> flag be consistent across commands

This commit is contained in:
Mislav Marohnić 2021-08-16 22:28:39 +02:00
parent 20d75f0ff9
commit 22be26431e
2 changed files with 2 additions and 2 deletions

View file

@ -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())

View file

@ -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
}