Skip to content

Commit

Permalink
update flag to --show-server
Browse files Browse the repository at this point in the history
  • Loading branch information
juanvallejo committed Sep 30, 2016
1 parent 78f36be commit 85e2d6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/cli/cmd/whoami.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func NewCmdWhoAmI(name, fullName string, f *clientcmd.Factory, out io.Writer) *c

cmd.Flags().BoolP("show-token", "t", false, "Print the token the current session is using. This will return an error if you are using a different form of authentication.")
cmd.Flags().BoolP("show-context", "c", false, "Print the current user context name")
cmd.Flags().BoolP("show-server-url", "u", false, "Print the server's REST API URL")
cmd.Flags().Bool("show-server", false, "Print the server's REST API URL")

return cmd
}
Expand Down Expand Up @@ -90,7 +90,7 @@ func RunWhoAmI(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []s
fmt.Fprintf(out, "%s\n", cfg.CurrentContext)
return nil
}
if kcmdutil.GetFlagBool(cmd, "show-api-url") {
if kcmdutil.GetFlagBool(cmd, "show-server") {
cfg, err := f.OpenShiftClientConfig.RawConfig()
if err != nil {
return err
Expand Down

0 comments on commit 85e2d6b

Please sign in to comment.