aboutsummaryrefslogtreecommitdiff
path: root/src/command.py
diff options
context:
space:
mode:
authortassaron2022-04-26 13:10:29 -0400
committertassaron2022-04-26 13:10:29 -0400
commit17b4cba6d1a5f24b4de3b53f79b93dd409e28ccd (patch)
tree77bc1cfe57e4e756b0a56833bb2784b0c7ee630b /src/command.py
parentfe3251c528df7eff51be6ecbb18261990b524944 (diff)
tests for commandline argument parsing
Diffstat (limited to 'src/command.py')
-rw-r--r--src/command.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/command.py b/src/command.py
index 0aab0f7..db72de7 100644
--- a/src/command.py
+++ b/src/command.py
@@ -133,14 +133,18 @@ class Command(QtCore.QObject):
if 'audioFile' in key:
input = value
self.createAudioVisualisation(input, output)
+ return "commandline"
elif self.args.input and self.args.output:
self.createAudioVisualisation(self.args.input, self.args.output)
+ return "commandline"
- elif 'help' not in sys.argv:
+ elif 'help' not in sys.argv and self.args.projpath is None and '--debug' not in sys.argv:
self.parser.print_help()
quit(1)
+ return "GUI"
+
def createAudioVisualisation(self, input, output):
self.core.selectedComponents = list(
reversed(self.core.selectedComponents))