示例#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"
示例#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"
示例#3
0
 def goCrazy(self):
     common_functions.executeLogoCommands(config.config["Crazy"]["secuence"])
示例#4
0
 def goEight(self):
     common_functions.executeLogoCommands(config.config["Eight"]["secuence"])
示例#5
0
 def goZigZag(self):
     common_functions.executeLogoCommands(config.config["ZigZag"]["secuence"])
示例#6
0
 def fullTurn(self):
     common_functions.executeLogoCommands(config.config["FullTurn"]["secuence"])
示例#7
0
 def goCrazy(self):
     common_functions.executeLogoCommands(
         config.config["Crazy"]["secuence"])
示例#8
0
 def goEight(self):
     common_functions.executeLogoCommands(
         config.config["Eight"]["secuence"])
示例#9
0
 def goZigZag(self):
     common_functions.executeLogoCommands(
         config.config["ZigZag"]["secuence"])
示例#10
0
 def fullTurn(self):
     common_functions.executeLogoCommands(
         config.config["FullTurn"]["secuence"])