From 1074440a14daf70e655a8b9dac3ce9ccc0c331dd Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Tue, 11 Jun 2024 10:18:47 +0200 Subject: unschroot: fix internal option conflict Fixes: a1cc59818088 ("add example "unschroot.py"") --- examples/unschroot.py | 6 +++--- 1 file 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__": -- cgit v1.2.3