I can set verbosity of my command with
php bin/console mycommand:command -vvv
How can i Set the same value with --verbose? 2.3 symfony
php bin/console mycommand:command --verbose=3
I have this error
[Symfony\Component\Console\Exception\RuntimeException]
The "--verbose" option does not accept a value.
With helper I can see this option
-v|vv|vvv, --verbose Increase the verbosity of
messages: 1 for normal output, 2 for more verbose output and 3 for
debug
I digged into the code and it seems to be a bug in the console component (I may be wrong, but I'm pretty sure it actually is a bug). The --verbose option is defined with a value of InputOption::VALUE_NONE, indicating it is not allowing any values.
I created a bug report here: https://github.com/symfony/symfony/issues/18546
It is a bug in the documentation of symfony and is not supported. Use -v, -vv or -vvv respectively (see the answer in my bug report).
Related
I installed Isabelle2015 and I ran Isabelle2015/Isabelle2015.
When I try of using the tptp_isabelle tool I got the following error:
$ ./isabelle tptp_isabelle 10 foo.tptp
Unknown logic "HOL-TPTP" -- no heap file found in:
/home/asr/.isabelle/Isabelle2015/heaps/polyml-5.5.2_x86-linux
/home/asr/src/isabelle/Isabelle2015/heaps/polyml-5.5.2_x86-linux
Do I need to set up something else?
You probably have to build the HOL-TPTP session:
isabelle build -b HOL-TPTP
I am writing my first symfony console apps and I would like to ask a question regarding the console outputs.
When I run a new CLI app in the console like: ./testapp then I get the following output:
Usage:
command [options] [arguments]
Options:
--help (-h) Display this help message
--quiet (-q) Do not output any message
--verbose (-v|vv|vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
--version (-V) Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
--no-interaction (-n) Do not ask any interactive question
Available commands:
help Displays help for a command
list Lists commands
Is there a way to remove the display of this content? I want only the "Available Commands" to be visible. And is it possible to create my own groups in this display?
As of Symfony 2.5, you can change the default command (the command that's executed when no command name was specified). See for more information: http://symfony.com/doc/current/components/console/changing_default_command.html
The Console component will always run the ListCommand when no command name is passed. In order to change the default command you just need to pass the command name to the setDefaultCommand method.
(Symfony Console 4.1)
It's possible to remove the default options:
$options = $app->getDefinition()->getOptions();
unset($options['ansi']);
unset($options['no-interaction']);
unset($options['verbose']);
unset($options['help']);
unset($options['quiet']);
unset($options['version']);
unset($options['no-ansi']);
$app->getDefinition()->setOptions($options);
or just:
$app->getDefinition()->setOptions();
Options group will not show in the list command.
Although I don't know if this has any undesirable side effect.
I'm using Flyway 3.0 within ANT and I would like to know if the stack when an Oracle error occur could be more detailed.
Example: if my migration script contain this statement:
DROP TABLE FOO$;
And this table doesn't exist, I expect:
ORA-00942 : table or view does not exist
But I got:
Flyway Error: org.flywaydb.core.internal.dbsupport.FlywaySqlScriptException: Error executing statement at line 4: DROP TABLE FOO$
Not optimal for root cause analysis...
Any idea for better verbosity ?
You can use Ant's standard -d switch to reveal more info. If you feel the standard info should be improved, please file a bug report in the issue tracker.
Adding the -X option to the flyway command line will print debug output.
How to run Grunt more silent?
I don't have the --verbose option on. Still I get a long log.
I would like to have a shorter log, ideally just log the failed specs.
Any suggestion?
I am using grunt-karma and Jasmine
update
After some discussions in comments below I think you could do something like:
grunt test | grep should\|Expected > logs.txt
This way you'll get only the lines containing "should" or "Expected" in the log file.
Adapt this expression to match the lines you want to keep.
My first answer was:
Just redirect the output
Assuming your task is named 'test'
under OS X / Linux:
grunt test > /dev/null
under windows command line:
grunt test > NUL
Or you can change your configuration and set options.silently to true. Take a look to the grunt-serve npm page
I was trying nagios.
following command works well when I execute from the console.
./check_http -I 10.0.0.76 -p 8080 --url="/MYServiceBus/" --post="<My Message xml>" --eregi=.Status_Code.0./Status_Code. -c 7 -w 5 -v
So I went ahead and added in nrpe.cfg
But then it started giving error in /var/log/messages
Unknown option specified in config file '/usr/local/nagios/etc/nrpe.cfg' - Line 246
Interesting part is that the actual command is at line 245.
And in fact there is another check_http commands in the same config file which are working fine.
Am I missing anything but obvious.
Thanks in advance.
regards,
Mohan
Looks like your NRPE is not reloading due to a syntax error in the configuration file.
You do not say whether you are running NRPE as a standalone daemon or via (x)inetd; also you have not shown the content of your file here, so it is hard to debug.
My guess would be that you have edited the nrpe.cfg file a Windows-like editor that has added a trailing ^M to line 246, which is causing the error. Or, there is an invalid character in the line which is causing the problem. If these are not the causes, you need to post the relevant block of lines for us to examine.
OK, got the issue. the request lenght was too much for the NRPE, reduced it and it worked after that.