diff options
author | Erik Skultety <eskultet@redhat.com> | 2023-03-10 13:53:54 +0100 |
---|---|---|
committer | Erik Skultety <eskultet@redhat.com> | 2023-03-14 15:50:14 +0100 |
commit | e1595b52a1adb2878b71c3dad5856fd442e91cac (patch) | |
tree | 9300292fa7f78beaf1440aaf9ab59afbbebf425f | |
parent | 76747cc52f0761bb65ce67e7b4aed7c399d33713 (diff) | |
download | libvirt-ci-e1595b52a1adb2878b71c3dad5856fd442e91cac.zip libvirt-ci-e1595b52a1adb2878b71c3dad5856fd442e91cac.tar.gz libvirt-ci-e1595b52a1adb2878b71c3dad5856fd442e91cac.tar.bz2 |
commandline: Set program name explicitly
The flat project hierarchy allows python to run the project directly
with 'python3 -m' and Python will automatically import the package.
However, that way it'll run the project via the __main__.py module
which in turn will set argv[0] to __main__.
Setting the program name explicitly in argparse is useful nonetheless.
Signed-off-by: Erik Skultety <eskultet@redhat.com>
-rw-r--r-- | lcitool/commandline.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lcitool/commandline.py b/lcitool/commandline.py index 4555b15..ec2f961 100644 --- a/lcitool/commandline.py +++ b/lcitool/commandline.py @@ -205,6 +205,7 @@ class CommandLine: # Main parser self._parser = argparse.ArgumentParser( + prog="lcitool", conflict_handler="resolve", description="libvirt CI guest management tool", ) |