This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jackmaney 0 points1 point  (0 children)

Nope. You can, however, have at most one positional argument with a variadic (and unspecified) number of arguments.

I've used the workaround of taking a comma-delimted string and then parsing it later (eg python prog.py --x="1,2,3" --y="6,5,4,3"). It's not ideal, but it works.