You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An application modifies text files by applying a chain of functions to each line. The order of the parameters (not arguments) matters.
filterapp input.txt -a +b -c -d...
How is it possible to get the order of the supplied parameters (-a, +b, -c, -d) as supplied on the command line?
I tried click.get_current_context().params but the dictionary is not an OrderedDict so the positions change each run (older Python3 where standard dictionaries are still unordered).
Thank you
kind regards
Ben
The text was updated successfully, but these errors were encountered:
An application modifies text files by applying a chain of functions to each line. The order of the parameters (not arguments) matters.
filterapp input.txt -a +b -c -d...
How is it possible to get the order of the supplied parameters (-a, +b, -c, -d) as supplied on the command line?
I tried
click.get_current_context().params
but the dictionary is not an OrderedDict so the positions change each run (older Python3 where standard dictionaries are still unordered).Thank you
kind regards
Ben
The text was updated successfully, but these errors were encountered: