[vlc-commits] commit: python bindings: display usage message if no parameter is specified (Olivier Aubert )

git at videolan.org git at videolan.org
Mon Jul 19 11:23:55 CEST 2010


vlc/python | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Mon Jul 19 11:21:13 2010 +0200| [ab5811bcc283793fb36384482a696312d265a3c1] | committer: Olivier Aubert 

python bindings: display usage message if no parameter is specified

> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=ab5811bcc283793fb36384482a696312d265a3c1
---

 footer.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/footer.py b/footer.py
index 66a348f..313bedd 100644
--- a/footer.py
+++ b/footer.py
@@ -139,5 +139,9 @@ if __name__ == '__main__':
                 # Numeric value. Jump to a fraction of the movie.
                 v=0.1*(o-48)
                 player.set_position(v)
+    else:
+        print "Syntax: %s movie_filename" % sys.argv[0]
+        print "Once launched, type ? to get commands."
+
 
 



More information about the vlc-commits mailing list