diff options
author | Helmut Grohne <helmut@subdivi.de> | 2024-06-11 10:18:47 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2024-06-11 10:18:47 +0200 |
commit | 1074440a14daf70e655a8b9dac3ce9ccc0c331dd (patch) | |
tree | f8111a76c7b839d49aae5655cfd63e2b7590e7c1 | |
parent | a1cc59818088bae661ecead3a3d769c7a9970d2d (diff) | |
download | python-linuxnamespaces-1074440a14daf70e655a8b9dac3ce9ccc0c331dd.tar.gz |
unschroot: fix internal option conflict
Fixes: a1cc59818088 ("add example "unschroot.py"")
-rwxr-xr-x | examples/unschroot.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/unschroot.py b/examples/unschroot.py index 5d847f4..fe37b9d 100755 --- a/examples/unschroot.py +++ b/examples/unschroot.py @@ -262,7 +262,7 @@ def main() -> None: group.add_argument( f"-{comm[0]}", f"--{comm}", - dest="command", + dest="subcommand", action="store_const", const=func, help=func.__doc__, @@ -280,8 +280,8 @@ def main() -> None: parser.add_argument("-u", "--user", action="store", default=os.getlogin()) parser.add_argument("command", nargs="*") args = parser.parse_args() - assert args.command is not None - args.command(args) + assert args.subcommand is not None + args.subcommand(args) if __name__ == "__main__": |