diff options
author | Joel Andres Granados <jgranado@redhat.com> | 2008-03-14 10:47:20 +0100 |
---|---|---|
committer | Joel Andres Granados <jgranado@redhat.com> | 2008-03-14 10:47:20 +0100 |
commit | 643706ac717974d6ad2df9377e55902f95a4be82 (patch) | |
tree | 917a6bc46bf97225e2f1ca1fcb7aaf24913f01fb /firstaidkit | |
parent | d212031f45e0c7a15f6fef1b48253798474bb307 (diff) | |
download | firstaidkit-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-x | firstaidkit | 5 |
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" |