summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Kraft <george.kraft@calxeda.com>2012-08-21 11:33:09 -0500
committerGeorge Kraft <george.kraft@calxeda.com>2012-08-21 11:33:09 -0500
commited23638f07bb12693075235ce7abe0c6bebadcde (patch)
treed4ba09055045885ee082cad60cf1cc599f81277e
parent05a1b9f6360d68a1e27e773948592de91842229c (diff)
downloadcxmanage-ed23638f07bb12693075235ce7abe0c6bebadcde.tar.gz
cxmanage: Don't allow --threads to be less than 1
-rwxr-xr-xscripts/cxmanage2
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')