def default(self, cmd):
        ''' Collect incorrect and mistyped commands '''
        choices = ["help", "mode", "psiturk_status", "server", "shortcuts",
                   "worker", "db", "edit", "open", "config", "show",
                   "debug", "setup_example", "status", "tunnel", "amt_balance",
                   "download_datafiles", "exit", "hit", "load", "quit", "save",
                   "shell", "version"]
        print "%s is not a psiTurk command. See 'help'." %(cmd)
        print "Did you mean this?\n      %s" %(process.extractOne(cmd,
                                                                  choices)[0])
def default ( self , cmd ) : choices = [ "help" , "mode" , "psiturk_status" , "server" , "shortcuts" , "worker" , "db" , "edit" , "open" , "config" , "show" , "debug" , "setup_example" , "status" , "tunnel" , "amt_balance" , "download_datafiles" , "exit" , "hit" , "load" , "quit" , "save" , "shell" , "version" ] print "%s is not a psiTurk command. See 'help'." % ( cmd ) print "Did you mean this?\n      %s" % ( process . extractOne ( cmd , choices ) [ 0 ] )
Collect incorrect and mistyped commands