aboutsummaryrefslogtreecommitdiff
path: root/pyAggr3g470r
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2011-07-15 14:47:10 +0200
committercedricbonhomme <devnull@localhost>2011-07-15 14:47:10 +0200
commitfcb4a658f8e781959ba84f55ba6f4edd2d5b24db (patch)
tree321c707a57269e5dacc6501cad09e055e031ea73 /pyAggr3g470r
parentRelease 2.8. (diff)
downloadnewspipe-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-xpyAggr3g470r4
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()
bgstack15