You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Besides principle of least surprise, docopt compliance brings extra goodies like automatic bash/zsh completion generation.
For community:
⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment
The text was updated successfully, but these errors were encountered:
HaleTom
changed the title
Comply with docopt / POSIX POSIX.1-2017 12.1 Options
Comply with docopt / POSIX POSIX.1-2017 12.1 Utility Argument Syntax
Jan 20, 2022
The xxh is using the plus sign for the xxh arguments to save the ability to use the minus sign for the original ssh (or another tool) arguments. This allows just replace the first two letters in the ssh command to convert it to the xxh command:
The +options are "unique". Most shells use
-o thing --longoption -- arg1 arg2
where--
marks the end of options.Would you consider complying with POSIX 12.1 Utility Argument Syntax or perhaps easier, the python
docopt
which is largly POSIX compliant.Besides principle of least surprise,
docopt
compliance brings extra goodies like automatic bash/zsh completion generation.For community:
⬇️ Please click the 👍 reaction instead of leaving a
+1
or 👍 commentThe text was updated successfully, but these errors were encountered: