]> git.ipfire.org Git - pakfire.git/commitdiff
cli: Fix parsing multiple --bind options
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 25 May 2021 20:29:10 +0000 (20:29 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 25 May 2021 20:29:10 +0000 (20:29 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/cli.py

index e9c1a9bde79925fd9a59e57465836278318b6ad1..e229fd4dd53857193e1b39df58475a4e9ae58f3c 100644 (file)
@@ -96,7 +96,7 @@ class Cli(object):
                # execute
                execute = subparsers.add_parser("execute",
                        help=_("Executes a command in the pakfire environment (useful for development)"))
-               execute.add_argument("--bind", nargs="*", default=[], dest="binds",
+               execute.add_argument("--bind", action="append", default=[], dest="binds",
                        help=_("Bind-mounts the given directory"))
                execute.add_argument("command", nargs=argparse.REMAINDER)
                execute.set_defaults(func=self.handle_execute)