From: Michael Tremer Date: Wed, 3 Aug 2011 11:41:27 +0000 (+0200) Subject: Rename --instroot to --root. X-Git-Tag: 0.9.5~12^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ba449f0e7ec28617548b3d994398f2a159e59d3;p=pakfire.git Rename --instroot to --root. --- diff --git a/pakfire/cli.py b/pakfire/cli.py index f3c4d7dca..9ca21311f 100644 --- a/pakfire/cli.py +++ b/pakfire/cli.py @@ -25,7 +25,7 @@ class Cli(object): self.parse_common_arguments() - self.parser.add_argument("--instroot", metavar="PATH", + self.parser.add_argument("--root", metavar="PATH", default="/", help=_("The path where pakfire should operate in.")) @@ -67,8 +67,8 @@ class Cli(object): def pakfire_args(self): ret = { "mode" : "normal" } - if hasattr(self.args, "instroot"): - ret["path"] = self.args.instroot + if hasattr(self.args, "root"): + ret["path"] = self.args.root if hasattr(self.args, "disable_repo"): ret["disable_repos"] = self.args.disable_repo