Open wahrwolf opened 5 years ago
Hello @dbieber and @wahrwolf ,
I would like to contribute to this enhancement, and to this end, I'd like to discuss how to resolve this issue.
With the --use-bash-arrays
parameter proposed by @wahrwolf , I have the following questions:
--bash-array-elem-type=str
count_lines
function may define a use-bash-arrays
variable as a parameter in its signature. Any mechanism of handling this occurrence?
( f1 f2 f3 ... )
. Should we accommodate such a declaration as well?
Hi there, I love fire but I keep running in the same issue.
A lot of my scripts support a target directive so I can handover a list and it will iterate over the list.
If I combine that with Fire I need to write ugly python lists and can not use bash magic. E.g. I need to write
python example.py count_lines '["file00", "file01", "file02"...]'
instead of something like 'python example.py count_lines "file{00..10}"` and I can not use any tab completion.My current workaround is adding:
One idea was to add this line with a special param like
--use-bash-arrays
to the Fire parser so I can run the script like:python example.py count_lines "ffiles{00..}" -- --use-bash-arrays