-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix some cli command description #12128
fix some cli command description #12128
Conversation
eecdea5
to
05924ac
Compare
@openshift/cli-review |
[test] |
@fabianofranz ptal,thanks. |
@fabianofranz I check the results of test failure, it seems a flake. Can you trigger test again? thanks. |
check flaked on #12157 re[test] |
@juanvallejo thanks.:) |
@juanvallejo test failure again, seems another flake. |
integration check flaked on #8571 @guangxuli looks like you'll need to rebase as well |
05924ac
to
e3348a8
Compare
@juanvallejo thanks so much, have rebased. |
@fabianofranz lgtm re[test] |
flaked on #8502 re[test] |
1 similar comment
flaked on #8502 re[test] |
@fabianofranz @juanvallejo seems a flake again |
integration check flaked on #11775 re[test] |
@@ -171,15 +171,15 @@ func NewCmdVolume(fullName string, f *clientcmd.Factory, out, errOut io.Writer) | |||
}, | |||
} | |||
cmd.Flags().StringVarP(&opts.Selector, "selector", "l", "", "Selector (label query) to filter on") | |||
cmd.Flags().BoolVar(&opts.All, "all", false, "select all resources in the namespace of the specified resource types") | |||
cmd.Flags().BoolVar(&opts.All, "all", false, "If true, Select all resources in the namespace of the specified resource types") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*select must be lowercase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will be fixed, thanks.
@@ -270,7 +270,7 @@ func NewCmdRouter(f *clientcmd.Factory, parentName, name string, out, errout io. | |||
cmd.Flags().IntVar(&cfg.StatsPort, "stats-port", cfg.StatsPort, "If the underlying router implementation can provide statistics this is a hint to expose it on this port. Specify 0 if you want to turn off exposing the statistics.") | |||
cmd.Flags().StringVar(&cfg.StatsPassword, "stats-password", cfg.StatsPassword, "If the underlying router implementation can provide statistics this is the requested password for auth. If not set a password will be generated.") | |||
cmd.Flags().StringVar(&cfg.StatsUsername, "stats-user", cfg.StatsUsername, "If the underlying router implementation can provide statistics this is the requested username for auth.") | |||
cmd.Flags().BoolVar(&cfg.ExposeMetrics, "expose-metrics", cfg.ExposeMetrics, "This is a hint to run an extra container in the pod to expose metrics - the image will either be set depending on the router implementation or provided with --metrics-image.") | |||
cmd.Flags().BoolVar(&cfg.ExposeMetrics, "expose-metrics", cfg.ExposeMetrics, "If true, this is a hint to run an extra container in the pod to expose metrics - the image will either be set depending on the router implementation or provided with --metrics-image.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"f true, attempts to run ..."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed. thanks.
A couple minor nits then LGTM. |
e3348a8
to
b162ac1
Compare
@fabianofranz done. PTAL, thanks. |
f5fad1c
to
34069ee
Compare
6ca4304
to
8116c1e
Compare
Needs a rebase. |
8116c1e
to
9c93da2
Compare
@fabianofranz have rebased. |
@fabianofranz PTAL,thanks. |
Thanks @guangxuli! LGTM [merge] |
Evaluated for origin merge up to 9c93da2 |
[Test]ing while waiting on the merge queue |
Evaluated for origin test up to 9c93da2 |
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/12384/) (Base Commit: 652b30b) |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/12400/) (Base Commit: 039e433) (Image: devenv-rhel7_5548) |
what this PR does:
Mainly fix some description of some
oc
command, especially for the default value of option is false.when i run
oc deploy -h
, the output :I think the annotation of the options is confusing, since all the description are about
* = true
condition,while the default value of these options are false. I thought this is our rules at beginning, but when I run
oc new-build -h
command, I saw some outputs are more reasonable, like this(not all):I think we should add
if true
when the bool value of description before colons is false, that seems more clear.what I have fixed:
if true
to the description if not exist:if present
change it toif true
just for keeping consistent:what I do not fixed:
3.the option have two format, just like:
-t, --tty=false: Force a pseudo-terminal to be allocated