#!/usr/bin/env python
-"""
-This script does everything autoinstalls!
-
-Specifically, it:
-* Generates basic statistics about autoinstall versions
-* Migrates autoinstalls to the new Git format
-"""
-
import os
import optparse
import sys
Wizard is a Git-based autoinstall management system for scripts.
Its commands are:
+ info Reports information about an autoinstall
migrate Migrate autoinstalls from old format to Git-based format
- stat Generate statistics about autoinstalls
+ summary Generate statistics about autoinstalls
See '%prog help COMMAND' for more information on a specific command."""
raise SystemExit(-1)
# Dispatch commands
try:
- getattr(wizard.command, command).main(rest_argv, options)
+ command_fn = getattr(wizard.command, command)
except AttributeError:
parser.error("invalid action")
+ command_fn(rest_argv, options)
if __name__ == "__main__":
main()