Example #1
0
def doCommandLine(options):
    """
    do all command line parsing
    """
  
    if options.commandName and options.parametersList:
        print "No podes elegir ambas opciones al mismo tiempo o pasas una lista de parametros o un comando"

    if options.commandName:
        print options.commandName     
    elif options.parametersList:
        print options.parametersList
        common_functions.executeLogoCommands(options.parametersList)
    else:
        print "No se paso ninguna opcion"
Example #2
0
def doCommandLine(options):
    """
    do all command line parsing
    """

    if options.commandName and options.parametersList:
        print "No podes elegir ambas opciones al mismo tiempo o pasas una lista de parametros o un comando"

    if options.commandName:
        print options.commandName
    elif options.parametersList:
        print options.parametersList
        common_functions.executeLogoCommands(options.parametersList)
    else:
        print "No se paso ninguna opcion"
Example #3
0
 def goCrazy(self):
     common_functions.executeLogoCommands(config.config["Crazy"]["secuence"])
Example #4
0
 def goEight(self):
     common_functions.executeLogoCommands(config.config["Eight"]["secuence"])
Example #5
0
 def goZigZag(self):
     common_functions.executeLogoCommands(config.config["ZigZag"]["secuence"])
Example #6
0
 def fullTurn(self):
     common_functions.executeLogoCommands(config.config["FullTurn"]["secuence"])
Example #7
0
 def goCrazy(self):
     common_functions.executeLogoCommands(
         config.config["Crazy"]["secuence"])
Example #8
0
 def goEight(self):
     common_functions.executeLogoCommands(
         config.config["Eight"]["secuence"])
Example #9
0
 def goZigZag(self):
     common_functions.executeLogoCommands(
         config.config["ZigZag"]["secuence"])
Example #10
0
 def fullTurn(self):
     common_functions.executeLogoCommands(
         config.config["FullTurn"]["secuence"])