bitkeeper revision 1.1159.6.6 (41179dabYIpxIUZuaPwVjF-Fu7boXA)

Fix restore to have correct arguments.
This commit is contained in:
mjw@wray-m-3.hpl.hp.com committed 2004-08-09 15:52:11 +00:00
1 parent 9b9aa8ef37
commit 21e0d175ee
1 file changed
+5 -9
+5 -9
View File
@@ -282,17 +282,13 @@ class ProgRestore(Prog):
info = """Create a domain from a saved state."""
def help(self, args):
print args[0], "FILE [CONFIG]"
print "\nRestore a domain from FILE using configuration CONFIG."
print args[0], "FILE"
print "\nRestore a domain from FILE."
def main(self, help, args):
def main(self, args):
if len(args) < 2: self.err("%s: Missing arguments" % args[0])
savefile = os.path.abspath(args[1])
if len(args) >= 3:
configfile = os.path.abspath(args[2])
else:
configfile = None
info = server.xend_domain_restore(savefile, configfile)
savefile = os.path.abspath(args[1])
info = server.xend_domain_restore(savefile)
PrettyPrint.prettyprint(info)
xm.prog(ProgRestore)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.