summaryrefslogtreecommitdiffstats
path: root/firstaidkit
diff options
context:
space:
mode:
authorJoel Andres Granados <jgranado@redhat.com>2008-03-14 10:47:20 +0100
committerJoel Andres Granados <jgranado@redhat.com>2008-03-14 10:47:20 +0100
commit643706ac717974d6ad2df9377e55902f95a4be82 (patch)
tree917a6bc46bf97225e2f1ca1fcb7aaf24913f01fb /firstaidkit
parentd212031f45e0c7a15f6fef1b48253798474bb307 (diff)
downloadfirstaidkit-643706ac717974d6ad2df9377e55902f95a4be82.tar.gz
firstaidkit-643706ac717974d6ad2df9377e55902f95a4be82.tar.xz
firstaidkit-643706ac717974d6ad2df9377e55902f95a4be82.zip
Tell the user when he is missing arguments for the flow mode. fixes (#38)
Diffstat (limited to 'firstaidkit')
-rwxr-xr-xfirstaidkit5
1 files changed, 5 insertions, 0 deletions
diff --git a/firstaidkit b/firstaidkit
index 282607e..2fc8ce5 100755
--- a/firstaidkit
+++ b/firstaidkit
@@ -162,6 +162,11 @@ if __name__=="__main__":
Config.operation.params = val
if Config.operation.mode == "flow":
+ if len(rest) < 1:
+ print "Error in the command arguments.\n"
+ usage(sys.argv)
+ sys.exit(1)
+
Config.operation.plugin = rest[0]
if len(rest)<=1:
Config.operation.mode = "plugin"