-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Arguments after "end of flags" (--) aren't easily available #8
Comments
Moved to type-flag repo since it's type-flag that handles Thanks for requesting this feature. I needed something similar in git-detect-case-change but I was able to work around it so it wasn't strong enough of a use-case to warrant I think the use-case you described, including scripts like This will be a breaking change but I'm happy to make it. |
I'm thinking about creating a However, it might be confusing to discern between Do you have any other ideas? |
That's very close to the case I had in mind.
This wouldn't need to be a breaking change if you continued appending the extra args to
Very good points. Maybe Alternately, it could be a well-known property attached to |
Another option to all of this would be:
|
Thank you for the feedback! It was very helpful. I think I have decided to move forward with
I plan on testing it in some of my projects tomorrow before I release it but feel free to give it a try if you'd like and share feedback:
|
Awesome! Thanks for being so receptive to ideas. I’ll give it a try soon |
Available in v2.1.0! Releasing in Cleye soon. Thanks @jgoz |
Released in Cleye 1.1.0 |
Feature request
Add a
__
property that only contains the arguments following the end of flags token.Why?
Arguments passed after the "end of flags" token (
--
) are appended to_
, but there is no way to determine at which point in the array they start. It's often the case that extra args need to be passed to a child process, which requires them to be separated from the "known" args.With
cleye
's current design, it's not possible to determine where the extra args begin.Alternatives
Expose a property containing the index of the first extra arg.
Additional context
No response
The text was updated successfully, but these errors were encountered: