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 a way to pass along command-line arguments with --exec #113

Open
nevinera opened this issue Nov 16, 2023 · 0 comments
Open

Add a way to pass along command-line arguments with --exec #113

nevinera opened this issue Nov 16, 2023 · 0 comments

Comments

@nevinera
Copy link
Owner

qq -Xrspec is very useful, but I'd like to be able to supply extra flags to rspec, so I can write aliases that, for example, run with -fd, or filter the target specs with -e.

A lot of unix tools accept -- as meaning "pass along everything past this flag to the underlying tool - that's not useful in the normal qq use-case, but could work perfectly for qq -X.. is that too complex? How hard is it to document usefully?

Would we be better served by a general-purpose "pass this string as additional arguments to that tool" system, which could used through the cli or the config file? That would give us quite a bit more, but would require the flags to be quoted.. and currently we have no system for accepting non-boolean arguments per-tool on the cli (file-filter is config-file only). Perhaps we can fix that first, implementing a general-purpose way to supply per-tool argument-taking options, and then use it for this?

It might be ideal to support both approaches, to simplify the quoting issues, but only use the post--- arguments in the -X case?

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

1 participant