odo icon indicating copy to clipboard operation
odo copied to clipboard

Refine help output for generic flags

Open rm3l opened this issue 3 years ago • 4 comments

    Just a discussion (also applies to the `run-on` flag):

From the user perspective, now that these two flags are visible globally, can the odo help output provide more guidance by telling users which commands these flags can be used with? I understand this would mean maintaining these descriptions, but I think it would be helpful. So I'd suggest something like:

	pflag.CommandLine.String(VarFileFlagName, "", "File containing variables to override Devfile variables. Usable with \"odo dev\" and \"odo deploy\" commands.")

What do you think?

Because currently, users have to explicitly run the command to see if the flag can be used or not, e.g.:

> odo init --var USER                                                             
 ✗  --var-file and --var flags are not supported for this command

Originally posted by @rm3l in https://github.com/redhat-developer/odo/pull/6201#discussion_r990138480

rm3l avatar Oct 10 '22 12:10 rm3l

A friendly reminder that this issue had no activity for 90 days. Stale issues will be closed after an additional 30 days of inactivity.

github-actions[bot] avatar Aug 28 '23 00:08 github-actions[bot]

This issue was closed because it has been inactive for 30 days since being marked as stale.

github-actions[bot] avatar Sep 27 '23 00:09 github-actions[bot]

Still relevant from the CLI UX perspective.

/remove-lifecycle stale /remove-lifecycle rotten /priority Low

rm3l avatar Sep 27 '23 07:09 rm3l

A friendly reminder that this issue had no activity for 90 days. Stale issues will be closed after an additional 30 days of inactivity.

github-actions[bot] avatar Dec 27 '23 00:12 github-actions[bot]