Allow arguments to be hardcoded strings with - and = characters #13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe the change
This pull request allows
:argument
option to be a hardcoded string representing a command that can contain args and env variables.Note: Please advise if there is another way to define an argument to would allow a hardcoded string with special characters like = and -
Ex:
my-cli --notify 'bundle exec rake TEST=<test>'
Why are we doing this?
I have a gem trying to parse a string like this
'my-command FILE=<test>'
as an argument and currently fails to parse the command properly. TTY::Option returnsnil
when a=
or-
is used in the string.Any related context as to why is this is a desirable change.
Here is the issue: AlexB52/retest#81
Benefits
Meta: We can pass a hardcoded string as an argument using ENV variables and flags.
Drawbacks
Requirements
master
branch?