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

Make the command positional arg options #9

Open
mattmahn opened this issue Dec 13, 2021 · 0 comments
Open

Make the command positional arg options #9

mattmahn opened this issue Dec 13, 2021 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@mattmahn
Copy link
Owner

With the completion of #7, it has become evident that sometimes you may not want to provide an additional argument.
For example, extracting the commands to run into a separate script file:

git checkout master
git pull
git checkout -b new-branch
sed -- -i 's/foo/bar/g' some_file.txt
git add .
git commit -F /tmp/my_commit_msg.txt  # or -m 'some message'
git push -u origin HEAD

then gitall -X "$(realpath my_custom_script.sh)" will complain that an argument has not been provided to my_custom_script.sh; even though it's not actually required. This particular instance could be resolved by providing a dummy argument, but that doesn't work with all -X executables.

@mattmahn mattmahn added bug Something isn't working good first issue Good for newcomers labels Dec 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant