Learn Before
Concept
Ordering keyword arguments
To execute something like the following,
my-command --arg1=val1 arg2 --arg3=val3
the user will have to use raw ordered arguments instead of using the keyword argument, such as
sh.my_command("--arg1=val1", "arg2", "--arg3=val3")
The following will be a wrong instance because in Python, position arguments like arg2 cannot come after keyword arguments.
sh.my_command(arg1="val1", "arg2", arg3="val3")
0
1
Updated 2021-07-20
Tags
Python Programming Language
Data Science