-
Notifications
You must be signed in to change notification settings - Fork 8
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
Propose strategy for dealing with color flags #46
base: master
Are you sure you want to change the base?
Conversation
Hey, thanks for this! I appreciate you moving the ball forward on this long-standing issue. Here's the basic acceptance criteria:
I think you nailed all these just by adding |
So any bossy flags will be stripped out if u grab args from Should we grab |
The way it currently works is intentional: run commands should receive all arguments, and all other commands should only receive arguments that weren't processed by e.g. bossy. |
Left off attempting to write tests for the |
@wswoodruff one way to do it could be to use |
By the way, if you add some tests around that I think you'll want to add it to the |
Not sure how I feel about what I came up with here:
[*]
to determine if it's ameta
flag or not. In my brain I'm saying meta flags are flags that can be applied to any command, and I'm removing them from the equation for the rest of the logic so no code changes are needed in specific command paths besides referencingargsSansMetaFlags
instead ofextraArgs
.After approach is decided, I can write some tests to bring it back up to 100% coverage.