diff options
author | cedricbonhomme <devnull@localhost> | 2011-07-15 14:47:10 +0200 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2011-07-15 14:47:10 +0200 |
commit | fcb4a658f8e781959ba84f55ba6f4edd2d5b24db (patch) | |
tree | 321c707a57269e5dacc6501cad09e055e031ea73 /pyAggr3g470r | |
parent | Release 2.8. (diff) | |
download | newspipe-fcb4a658f8e781959ba84f55ba6f4edd2d5b24db.tar.gz newspipe-fcb4a658f8e781959ba84f55ba6f4edd2d5b24db.tar.bz2 newspipe-fcb4a658f8e781959ba84f55ba6f4edd2d5b24db.zip |
Minor improvement of the control script (test if there is an argument).
Diffstat (limited to 'pyAggr3g470r')
-rwxr-xr-x | pyAggr3g470r | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pyAggr3g470r b/pyAggr3g470r index b136df24..81f5cea0 100755 --- a/pyAggr3g470r +++ b/pyAggr3g470r @@ -117,7 +117,9 @@ def usage(): if __name__ == "__main__": # Point of entry in execution mode. - if sys.argv[1] == "start": + if len(sys.argv) == 1: + usage() + elif sys.argv[1] == "start": start() elif sys.argv[1] == "stop": stop() |