Commit 6fceb760 authored by Jimmy DORE's avatar Jimmy DORE
Browse files

ajout de l'option moves dans les params

parent 38a290e0
......@@ -36,12 +36,13 @@ def readArgs():
optlist, args = getopt.getopt(
sys.argv[1:],
'c:s:taC',
'c:s:taCm',
['cube=',
'speed=',
'tuto',
'auto',
'colors']
'colors',
'moves']
)
arguments = {k: v for k, v in optlist} #on tranforme la list en dict
......@@ -76,6 +77,12 @@ def readArgs():
if '--colors' in arguments:
result['colors'] = arguments['--colors'] #--colors override -C
if '-m' in arguments:
result['moves'] = arguments['-m']
if '--moves' in arguments:
result['moves'] = arguments['--moves'] #--colors override -C
return result
def codeToColor(code):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment