Skip to content
Snippets Groups Projects
Commit d90795c6 authored by Till Brehm's avatar Till Brehm
Browse files

Merge branch 'help-for-empty' into 'develop'

CLI: show help infor for empty argument

See merge request ispconfig/ispconfig3!1906
parents 15ace20e 1e3b9a6d
No related branches found
No related tags found
1 merge request!1906CLI: show help infor for empty argument
Pipeline #14885 passed
......@@ -41,7 +41,7 @@ $app->load('cli');
//* Check input
$module = $argv[1];
if($module == '-h' || $module == '--help') $module = 'help';
if(empty($module) || $module == '-h' || $module == '--help') $module = 'help';
if(!preg_match("/[a-z0-9]{3,20}/",$module)) die("Invalid commandline option\n");
//* Check if cli module exists and run it
if(is_file('modules/'.$module.'.inc.php')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment