more compact pgetopts help #27
Labels
No labels
blocked
bug
ciritical
code improvement
duplicate
feature
in progress
low
normal
research
spec change
ui
urgent
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
w21/jpylib#27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For simplicity, the output of
ovc.ovc_help()has the options and their help text on different lines. That enables a horizontally compact output with minimal effort. But it isn't as verticall compact as it could be, and it leaves something to be desired aesthetically.So, a nicer-looking albeit not as horizontally compact output is desired. It could look like this:
usage: psg [-Wio] [-f FIELD] [-F FIELD] [-p ARG,...] pattern ...
Find argument(s) (a regexp) in ps output
This is just a mockup, sadly. But it shows that even options with longish names and an argument and a default value can fit into 80 characters (which just does, just so). Drawback: a double loop, one to do the option strings, one to do the padding.
If this isn't sufficient, the user can insert "\n\t" (or more tabs) as appropriate to have a line break followed by some indentation in the optoin's explanation.
Rationale: In this case, I put simplicity of the implementation before user convenience in a rarer case.
assigned to @ni