Skip to content

How to read rest of the line into list of arguments ignoring options (even existing ones) #2531

Answered by davidism
petrsynek asked this question in Q&A
Discussion options

You must be logged in to vote

Use -- to separate options from tokens that must be treated as arguments.

python cli.py -a -b -c -- -d -e

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@petrsynek
Comment options

Answer selected by petrsynek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants