]> scripts.mit.edu Git - wizard.git/blob - lib/wizard/command/migrate.py
Rename stat to summary, and remove spurious comment.
[wizard.git] / lib / wizard / command / migrate.py
1 import optparse
2 import sys
3
4 import wizard.deploy as wd
5
6 def main(argv, global_options):
7     usage = """usage: %prog migrate [ARGS] DIR
8
9 Migrates a directory to our Git-based autoinstall format.
10 Performs basic sanity checking and intelligently determines
11 what repository and tag to use.
12
13 NOTICE: Currently doesn't do anything."""
14     parser = optparse.OptionParser(usage)
15     parser.add_option("-v", "--verbose", dest="verbose", action="store_true",
16             default=False, help="Print all commands and outputs")
17     parser.add_option("--dry-run", dest="dry_run", action="store_true",
18             default=False, help="Prints would would be run without changing anything")
19     options, args = parser.parse_args(argv)
20     if len(args) > 1:
21         parser.error("too many arguments")
22     elif not args:
23         parser.error("must specify directory")
24     dir = args[0]
25     print dir
26     print options