Skip to content
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

Comply with docopt / POSIX POSIX.1-2017 12.1 Utility Argument Syntax #129

Open
HaleTom opened this issue Jan 20, 2022 · 1 comment
Open

Comments

@HaleTom
Copy link

HaleTom commented Jan 20, 2022

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 👍 comment

@HaleTom 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
@anki-code
Copy link
Member

anki-code commented Jan 20, 2022

hi @HaleTom !

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:

ssh -i ~/mykey user@host
xxh -i ~/mykey user@host
xxh -i ~/mykey user@host +s xonsh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants