Now with early error checking and nice error messages:
--max-load 100
Errors in command-line arguments:
* Invalid --max-load: 100 is not a variable name
--max-load foo=bar
Errors in command-line arguments:
* Invalid --max-load: The value for foo must be a number
--max-load foo=100
Error checking --max-load or --critial-load: Variable foo does not exist or its value is undefined. Check that the variables specified for --max-load and --critical-load are spelled correctly and exist in SHOW GLOBAL STATUS. Current values for these options are:
--max-load foo=100
--critial-load Threads_running=50
Now with early error checking and nice error messages:
--max-load 100
Errors in command-line arguments:
* Invalid --max-load: 100 is not a variable name
--max-load foo=bar
Errors in command-line arguments:
* Invalid --max-load: The value for foo must be a number
--max-load foo=100
Error checking --max-load or --critial-load: Variable foo does not exist or its value is undefined. Check that the variables specified for --max-load and --critical-load are spelled correctly and exist in SHOW GLOBAL STATUS. Current values for these options are:
--max-load foo=100
--critial-load Threads_running=50