diff options
author | George Kraft <george.kraft@calxeda.com> | 2012-08-21 11:33:09 -0500 |
---|---|---|
committer | George Kraft <george.kraft@calxeda.com> | 2012-08-21 11:33:09 -0500 |
commit | ed23638f07bb12693075235ce7abe0c6bebadcde (patch) | |
tree | d4ba09055045885ee082cad60cf1cc599f81277e | |
parent | 05a1b9f6360d68a1e27e773948592de91842229c (diff) | |
download | cxmanage-ed23638f07bb12693075235ce7abe0c6bebadcde.tar.gz |
cxmanage: Don't allow --threads to be less than 1
-rwxr-xr-x | scripts/cxmanage | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/cxmanage b/scripts/cxmanage index e04352e..409d922 100755 --- a/scripts/cxmanage +++ b/scripts/cxmanage @@ -231,6 +231,8 @@ def build_parser(): def validate_args(args): """ Bail out if the arguments don't make sense""" + if args.threads < 1: + sys.exit('ERROR: --threads must be at least 1') if args.func == fwupdate_command: if args.skip_simg and args.version: sys.exit('Invalid argument --version when supplied with --skip-simg') |