summaryrefslogtreecommitdiff
path: root/examples/unschroot.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2024-06-11 10:18:47 +0200
committerHelmut Grohne <helmut@subdivi.de>2024-06-11 10:18:47 +0200
commit1074440a14daf70e655a8b9dac3ce9ccc0c331dd (patch)
treef8111a76c7b839d49aae5655cfd63e2b7590e7c1 /examples/unschroot.py
parenta1cc59818088bae661ecead3a3d769c7a9970d2d (diff)
downloadpython-linuxnamespaces-1074440a14daf70e655a8b9dac3ce9ccc0c331dd.tar.gz
unschroot: fix internal option conflict
Fixes: a1cc59818088 ("add example "unschroot.py"")
Diffstat (limited to 'examples/unschroot.py')
-rwxr-xr-xexamples/unschroot.py6
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__":