Python CLI tool - general parsing question
Posted
by WinkyWolly
on Stack Overflow
See other posts from Stack Overflow
or by WinkyWolly
Published on 2010-06-16T23:04:40Z
Indexed on
2010/06/16
23:22 UTC
Read the original article
Hit count: 278
If possible I would like to use the following structure for a command however I can't seem to figure out how to achieve this in Python:
./somescript.py arg <optional argument> -- "some long argument"
Would it be possible to achieve this in a feasible manner without too much dirty code? Or should I just reconsider the syntax (which is primarily preference).
Thanks!
© Stack Overflow or respective owner