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]);
|
||||
echo _(" -h Show this message\n");
|
||||
echo _(" -q / -d Quiet/Debug mode\n");
|
||||
echo _(" --trace Trace mode (the most verbose)\n");
|
||||
echo _(" command Command to run\n");
|
||||
echo "\n";
|
||||
echo _("Available commands:\n");
|
||||
|
@ -98,6 +99,9 @@ function handle_cli_args() {
|
|||
case '--quiet':
|
||||
$log_level = 'WARNING';
|
||||
break;
|
||||
case '--trace':
|
||||
$log_level = 'TRACE';
|
||||
break;
|
||||
default:
|
||||
if ($cli_command)
|
||||
$command_args[] = $argv[$i];
|
||||
|
|
Loading…
Reference in a new issue