Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
--- /dev/null
+To add a new command to wizard, you need to touch the following
+locations:
+
+- bin/wizard
+ Add a line describing your command in the helpstring
+- lib/wizard/command/__init__.py
+ Add the line "import commandname"
+- lib/wizard/command/commandname.py
+ Implement your command there as main()
if command == "help":
try:
getattr(wizard.command, rest_argv[0])(['-h'], options)
- except KeyError:
+ except AttributeError:
parser.error("invalid action")
except IndexError:
parser.print_usage()