I have the following issue:
I have multiple bash aliases for a python script: The python script is using arg-parse with two arugemnts, one is optional.
testing.py -i value1
testing.py -i value1 -e value2
alias test1=' ./testing.py -i $1'
This works as expected
alias test2=' ./testing.py -i $1 -e $2'
This doesn't work!
ultimately, would like to do this from the command line:
test2 value1 value2
I've searched bash functions, not entirely sure if it will solve my problem. I've tried numerous ways to escape, qoute, hack around it, rearrange.. etc.. no dice
It would be very helpful to be able to pass the second default argument in bash $2
to the -e argparse
option for the python script.
Any help would be greatly appreciated..
Sincerely,
Thanks!