]> git.parisson.com Git - timeside.git/commitdiff
scripts/timeside-launch: show usage if no argument is given
authorPaul Brossier <piem@piem.org>
Mon, 9 Dec 2013 14:37:13 +0000 (09:37 -0500)
committerPaul Brossier <piem@piem.org>
Mon, 9 Dec 2013 14:37:13 +0000 (09:37 -0500)
scripts/timeside-launch

index 2a3935d00efcad59e592e026aa74ee0f62f1a9dd..fa081ce0caf759b3a6f613223b22969e6957009d 100755 (executable)
@@ -141,6 +141,10 @@ if __name__ == '__main__':
     # load timeside after parse_args, to avoid gstreamer hijacking
     import timeside
 
+    if len(args) == 0:
+        print usage
+        sys.exit(1)
+
     if not options.quiet:
         for a in dir(options):
             if not callable(getattr(options,a)) and not a.startswith('_'):