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 unsupported List unsupported versions in the wild
16 version Breakdown of autoinstalls by version (default)
18 Use %prog summary SUBCOMMAND --help for more information."""
19 parser = command.WizardOptionParser(usage)
20 parser.disable_interspersed_args()
21 baton.push(parser, "versions_path")
22 _, args = parser.parse_all(argv)
25 command_name = args[0]
27 command_name = "version"
28 def get_command(name):
29 member = name.replace("-", "_")
30 module = "wizard.command.summary." + member
32 return getattr(wizard.command.summary, member)
35 get_command(rest_argv[0]).main(['--help'], baton)
37 parser.error("invalid action")
42 command_module = get_command(command_name)
44 parser.error("invalid action")
45 command_module.main(rest_argv, baton)