6 from wizard import command, deploy
9 usage = """usage: %prog summary [ARGS] APPS
11 Scans all of the collected data from parallel-find.pl, and
12 calculates interesting information about them.
15 version Breakdown of autoinstalls by version (default)
17 Use %prog summary SUBCOMMAND --help for more information."""
18 parser = command.WizardOptionParser(usage)
19 parser.disable_interspersed_args()
20 baton.push(parser, "versions_path")
21 _, args = parser.parse_all(argv)
24 command_name = args[0]
26 command_name = "version"
27 def get_command(name):
28 member = name.replace("-", "_")
29 module = "wizard.command.summary." + member
31 return getattr(wizard.command.summary, member)
34 get_command(rest_argv[0]).main(['--help'], baton)
36 parser.error("invalid action")
41 command_module = get_command(command_name)
43 parser.error("invalid action")
44 command_module.main(rest_argv, baton)