From 3c903794e3588560f2b9d342214009d55a675d5a Mon Sep 17 00:00:00 2001 From: tassaron Date: Thu, 22 Jun 2017 22:23:04 -0400 Subject: more commandline component options commandline options that existed before the redesign are now back --- command.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'command.py') diff --git a/command.py b/command.py index 9012ca4..1a1e810 100644 --- a/command.py +++ b/command.py @@ -2,6 +2,7 @@ from PyQt4 import QtCore from PyQt4.QtCore import QSettings import argparse import os +import sys import core import video_thread @@ -22,14 +23,14 @@ class Command(QtCore.QObject): description='Create a visualization for an audio file', epilog='EXAMPLE COMMAND: main.py myvideotemplate.avp ' '-i ~/Music/song.mp3 -o ~/video.mp4 ' - '-c 0 image ~/Pictures/thisWeeksPicture.jpg ' - '-c 1 video "preset=My Logo" -c 2 vis classic') + '-c 0 image path=~/Pictures/thisWeeksPicture.jpg ' + '-c 1 video "preset=My Logo" -c 2 vis layout=classic') self.parser.add_argument( '-i', '--input', metavar='SOUND', - help='input audio file', required=True) + help='input audio file') self.parser.add_argument( '-o', '--output', metavar='OUTPUT', - help='output video file', required=True) + help='output video file') # optional arguments self.parser.add_argument( @@ -71,7 +72,11 @@ class Command(QtCore.QObject): for arg in args: self.core.selectedComponents[i].command(arg) - self.createAudioVisualisation() + if self.args.input and self.args.output: + self.createAudioVisualisation() + elif 'help' not in sys.argv: + self.parser.print_help() + quit(1) def createAudioVisualisation(self): self.videoThread = QtCore.QThread(self) -- cgit v1.2.3 664eb2a80bc0e51f751ca2982ab6e1f617aabb'>treecommitdiffstats
path: root/.config/shell (unfollow)
Commit message (Expand)AuthorFilesLines
6 daysrefactor: put nvim config into one filekj_sh60410-518/+350
8 daysrefactor: try no window content on movekj_sh6041-2/+2
12 daysrefactor: go back to size 10 mono fontkj_sh6042-4/+5
14 daysrefactor: use a bigger terminal font sizekj_sh6044-6/+6
2026-05-23refactor: abandon learning super key for whiskermenukj_sh6043-14/+128
2026-05-22refactor: get rid of bad keyboard shortcutkj_sh6042-1/+14
2026-05-14refactor: add cgitrc highlighting choicekj_sh6041-1/+4
2026-05-08refactor: stop the lieskj_sh6041-1/+2
2026-04-22revert-to: `25a2cfac24903a40d9bc609f8eb7ca86fe7eb8b7`kj_sh6041-7/+7
2026-04-22refactor: `mpv.conf`kj_sh6041-7/+7
2026-04-22refactor: remove `video-sync=display-desync opengl-swapinterval=0 vulkan-swap...kj_sh6041-3/+0
2026-04-22refactor: let system handle tearfree and vsync²kj_sh6041-1/+2
2026-04-21refactor: let system handle tearfree and vsynckj_sh6041-0/+2
2026-04-20refactor: coc fixeskj_sh6041-0/+4
2026-04-16refactor: apparently a project directory is standard nowkj_sh6041-1/+1
2026-04-07refactor: remove ] shortcutskj_sh6041-11/+0
2026-04-01refactor: change `add_workspace_key` and `del_workspace_key`kj_sh6041-2/+2
2026-03-20refactor: .config/Code/User/settings.jsonkj_sh6041-1/+6
2026-03-20refactor: .config/Code/User/keybindings.jsonkj_sh6041-30/+85
2026-03-20refactor: use reasonable sizekj_sh6041-2/+2
2026-03-16refactor: add maximize secondary sidebar shortcutkj_sh6041-0/+4