aboutsummaryrefslogtreecommitdiff
path: root/src/command.py
diff options
context:
space:
mode:
authortassaron2022-05-05 22:33:46 -0400
committertassaron2022-05-05 22:33:46 -0400
commitd211151b05a1ca54e0a49a3b8618b7ab24655ede (patch)
tree2bfde4baa78cf244823055fb0ee57046f0f471ae /src/command.py
parentc36a3dc64501db64978ba71d5219976e3f7b2315 (diff)
show program name as 'avp' when invoked as python -m avp
Diffstat (limited to 'src/command.py')
-rw-r--r--src/command.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/command.py b/src/command.py
index 6d76906..68282e5 100644
--- a/src/command.py
+++ b/src/command.py
@@ -38,6 +38,7 @@ class Command(QtCore.QObject):
def parseArgs(self):
self.parser = argparse.ArgumentParser(
+ prog='avp' if os.path.basename(sys.argv[0]) == "__main__.py" else None,
description='Create a visualization for an audio file',
epilog='EXAMPLE COMMAND: main.py myvideotemplate.avp '
'-i ~/Music/song.mp3 -o ~/video.mp4 '