From ed23638f07bb12693075235ce7abe0c6bebadcde Mon Sep 17 00:00:00 2001 From: George Kraft Date: Tue, 21 Aug 2012 11:33:09 -0500 Subject: cxmanage: Don't allow --threads to be less than 1 --- scripts/cxmanage | 2 ++ 1 file changed, 2 insertions(+) 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') -- cgit v1.2.1