More clearly seeing which flags are required vs optional in help #323
Replies: 2 comments 5 replies
-
Following unix's conventions might be a place to start. For builtin help text showing usage, optional flags are also shown, but wrapped in So maybe the flags section in kong could stay the same, but the usage text should change to also include the optional flags. For example, in unix it'd look something like this:
There's some more details about it here: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html So for your example it might look more like this:
|
Beta Was this translation helpful? Give feedback.
-
I think the underlying issue is that there's no "single help" that everybody will be happy with :) Kong's help is extensible, but it's quite a lot of work in reality. I don't have a better solution, but I'm open to ideas. |
Beta Was this translation helpful? Give feedback.
-
When you run help, you get a full list of flags, but it's not super clear which ones are optional versus required:
While the required flags do get printed out in the usage section, it's a bit subtle and easy to miss.
I'm thinking of contributing some sort of syntax that clearly shows which flags are which, but am wondering if there's already a standard for this. Any ideas on what good standardized syntax would look like?
Beta Was this translation helpful? Give feedback.
All reactions