Arbitrary command line arguments in python -


I want to allow arbitrarily command line arguments. If the user provides me with a command line that looks like this

myscript.py --a valueofa --b mnphob posarg1 posarg2

I was passing valueofb with a manfafe , b and I have these last two positional logic Are there.

I have always used the opt-in, for which you actually see the arguments. But I want the user to be able to define "macros" arbitrage from the command line. Definitely there is a Python module which is much more beautiful than anything written by it. What is it? Unfortunately, if you have to support it, you have to write your own option parse = (.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -