commited all contents created by participants

This commit is contained in:
Bachir Soussi Chiadmi
2017-12-21 18:12:40 +01:00
parent cefd1c2ad0
commit b936b1e616
2137 changed files with 1076319 additions and 730 deletions
@@ -0,0 +1,17 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
def obtenir ( option, fallback=False ) :
'''String -> String/Boolean
Si l'option demandée n'existe pas, renvoie False.
Si l'option demandée existe'''
if option in sys.argv:
index = sys.argv.index( option ) + 1
if len( sys.argv ) > index :
print type( sys.argv[ index - 1 ])
print type( sys.argv[ index ])
print sys.argv[ index ][0]
return sys.argv[ index ]
return fallback