9 lines
219 B
Python
9 lines
219 B
Python
import sys
|
|
|
|
def obtenir ( option, fallback=False ) :
|
|
if option in sys.argv:
|
|
index = sys.argv.index( option ) + 1
|
|
if len( sys.argv ) > index :
|
|
return sys.argv[ index ]
|
|
return fallback
|