CLI: add --trace parameter
This commit is contained in:
parent
b10ba6cb73
commit
a120571e62
1 changed files with 4 additions and 0 deletions
|
@ -45,6 +45,7 @@ function usage($error=false) {
|
||||||
printf(_("Usage: %s [-h] [-qd] command\n"), $argv[0]);
|
printf(_("Usage: %s [-h] [-qd] command\n"), $argv[0]);
|
||||||
echo _(" -h Show this message\n");
|
echo _(" -h Show this message\n");
|
||||||
echo _(" -q / -d Quiet/Debug mode\n");
|
echo _(" -q / -d Quiet/Debug mode\n");
|
||||||
|
echo _(" --trace Trace mode (the most verbose)\n");
|
||||||
echo _(" command Command to run\n");
|
echo _(" command Command to run\n");
|
||||||
echo "\n";
|
echo "\n";
|
||||||
echo _("Available commands:\n");
|
echo _("Available commands:\n");
|
||||||
|
@ -98,6 +99,9 @@ function handle_cli_args() {
|
||||||
case '--quiet':
|
case '--quiet':
|
||||||
$log_level = 'WARNING';
|
$log_level = 'WARNING';
|
||||||
break;
|
break;
|
||||||
|
case '--trace':
|
||||||
|
$log_level = 'TRACE';
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
if ($cli_command)
|
if ($cli_command)
|
||||||
$command_args[] = $argv[$i];
|
$command_args[] = $argv[$i];
|
||||||
|
|
Loading…
Reference in a new issue