Skip to content

Conversation

@nacx
Copy link
Contributor

@nacx nacx commented Feb 1, 2018

No description provided.

@nacx nacx changed the title Add basic support for passing command-line arguments to the commands Add basic support for passing command-line arguments to commands Feb 1, 2018
@wagoodman wagoodman added this to the v0.0.11 milestone Feb 3, 2018
@wagoodman
Copy link
Owner

wagoodman commented Feb 3, 2018

Thanks for taking the time to add this feature (and tests!), it's really needed.

After some thought I decided that I only have one change request: instead of a csv list of options it would be more natural to allow users to add positional arguments as they would for a bash script... so instead of bashful run some.yaml --args 10,20,30 do something like bashful run some.yaml 10 20 30. In this way developers would inherently already know what $1 $2 and $3 are.

What are your thoughts?

@nacx
Copy link
Contributor Author

nacx commented Feb 3, 2018

Yes, sounds better. I'll change it that way 😀

@nacx
Copy link
Contributor Author

nacx commented Feb 5, 2018

Done!

@wagoodman
Copy link
Owner

Looks great, thanks again!

@wagoodman wagoodman merged commit fc979e2 into wagoodman:master Feb 5, 2018
@nacx nacx deleted the args branch February 5, 2018 13:10
@giantcow
Copy link

giantcow commented Jan 2, 2019

Can this be added to the README? I didn't know that this was a thing till I thought to make a feature request, and was searching through merged PR's.

@wagoodman
Copy link
Owner

@RyoshiKayo good point! Added in d4ddaa0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants