diff options
author | Aaron Bentley <abentley@panoramicfeedback.com> | 2006-04-03 14:39:52 -0400 |
---|---|---|
committer | Aaron Bentley <abentley@panoramicfeedback.com> | 2006-04-03 14:39:52 -0400 |
commit | 4145df7bc4a4335c8ac5d123a8d02104f4e7dc55 (patch) | |
tree | 3b09842e31c1c4a646aec10c1212d362c314f0e6 /becommands/upgrade.py | |
parent | 57ad245e927b1e5a9b230de3605431a041bb192e (diff) | |
parent | b29e00c9cc5ef707719019728a25a71faa5a66a8 (diff) | |
download | bugseverywhere-4145df7bc4a4335c8ac5d123a8d02104f4e7dc55.tar.gz |
Merge help updates
Diffstat (limited to 'becommands/upgrade.py')
-rw-r--r-- | becommands/upgrade.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/becommands/upgrade.py b/becommands/upgrade.py index 0cbffa1..16ac78e 100644 --- a/becommands/upgrade.py +++ b/becommands/upgrade.py @@ -17,9 +17,10 @@ """Upgrade the bugs to the latest format""" import os.path import errno -from libbe import bugdir, rcs +from libbe import bugdir, rcs, cmdutil def execute(args): + options, args = get_parser().parse_args(args) root = bugdir.tree_root(".", old_version=True) for uuid in root.list_uuids(): old_bug = OldBug(root.bugs_path, uuid) @@ -98,5 +99,15 @@ class OldBug(object): else: rcs.set_file_contents(self.get_path(name), "%s\n" % value) +def get_parser(): + parser = cmdutil.CmdOptionParser("be upgrade") + return parser + +longhelp=""" +Upgrades be-database. +""" + +def help(): + return get_parser().help_str() + longhelp |