arguments~20171216-192448.py 219 B

12345678
  1. import sys
  2. def obtenir ( option, fallback=False ) :
  3. if option in sys.argv:
  4. index = sys.argv.index( option ) + 1
  5. if len( sys.argv ) > index :
  6. return sys.argv[ index ]
  7. return fallback