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

Filed under:
|
|

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

Related posts about python

Related posts about shell-scripting