4 from wizard.command import _command
12 def main(argv, baton):
13 usage = """usage: %prog summary [ARGS] APPS
15 Scans all of the collected data from parallel-find.pl, and
16 calculates interesting information about them.
19 count-exists Counts how many autoinstalls contain a file
20 list Prints the locations of all autoinstalls
21 list-errors Prints all errors that occurred during parsing
22 version Breakdown of autoinstalls by version (default)
24 Use %prog summary SUBCOMMAND --help for more information."""
25 parser = _command.WizardOptionParser(usage)
26 parser.disable_interspersed_args()
27 baton.push(parser, "versions_path")
28 _, args = parser.parse_all(argv)
34 def get_command(name):
35 return globals()[name.replace("-", "_")]
38 get_command(rest_argv[0]).main(['--help'], baton)
40 parser.error("invalid action")
45 command_module = get_command(command)
47 parser.error("invalid action")
48 command_module.main(rest_argv, baton)