summaryrefslogtreecommitdiff
path: root/scripts/cxmanage
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/cxmanage')
-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')