Skip to content

Instantly share code, notes, and snippets.

@caad1229
Created August 12, 2015 09:35
Show Gist options
  • Select an option

  • Save caad1229/d4c807daa2d0484e4663 to your computer and use it in GitHub Desktop.

Select an option

Save caad1229/d4c807daa2d0484e4663 to your computer and use it in GitHub Desktop.
command module test python script
from cmd import Cmd
class testCmd(Cmd):
prompt = "hoge) "
def __init__(self):
Cmd.__init__(self)
def do_exe(self, arg):
print "do anything"
def help_exe(self):
print "help : exe"
if __name__ == '__main__':
testCmd().cmdloop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment