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

Add ability to add arguments to a mutex #11

Closed
RyanSquared opened this issue May 18, 2017 · 2 comments
Closed

Add ability to add arguments to a mutex #11

RyanSquared opened this issue May 18, 2017 · 2 comments

Comments

@RyanSquared
Copy link

Kinda like how Python runs stuff, I would like to be able to do fusion [ --package <package> | file ] so that either you can run fusion --package <package> or fusion <file>.

@mpeterv
Copy link
Owner

mpeterv commented Jun 8, 2017

Makes sense to implement this. Need to think a bit about the way this affects usage message. As order is important for positional arguments it would make sense to put usage of a mutex containing an argument in the spot where argument's usage would be if it wasn't in a mutex. Like this:

cmd [--option1] [--option2] <arg1> ([--option3] | <arg2>) <arg3>

I'll see if I can implement this, in the meantime pull requests are welcome.

@mpeterv
Copy link
Owner

mpeterv commented Mar 18, 2018

Implemented on master branch (better late than never...)

@mpeterv mpeterv closed this as completed Mar 18, 2018
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