Wizard is a Git-based autoinstall management system for scripts.
Its commands are:
+ errors Lists all broken autoinstall metadata
info Reports information about an autoinstall
+ list Lists autoinstalls, with optional filtering
massmigrate Performs mass migration of autoinstalls of an application
migrate Migrate autoinstalls from old format to Git-based format
summary Generate statistics (see help for subcommands)
raise SystemExit(1)
if command_name == "help":
try:
- get_command(rest_argv[0]).main(['--help'], baton)
- except (AttributeError, ImportError):
+ help_module = get_command(rest_argv[0])
+ except ImportError:
parser.error("invalid action")
except IndexError:
parser.print_help()
raise SystemExit(1)
+ help_module.main(['--help'], baton)
# Dispatch commands
try:
command_module = get_command(command_name)
- except (AttributeError, ImportError):
+ except ImportError:
parser.error("invalid action")
command_module.main(rest_argv, baton)