diff options
-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__": |