[Omake] Re: Output verbosity
Aleksey Nogin
anogin at hrl.com
Tue Jun 19 09:49:29 PDT 2007
On 19.06.2007 00:35, David Kågedal wrote:
>> You can disable the command output using "--output-only-errors".
>
> That's the default, isn't it?
No, not at all. "--output-only-errors" would cause all output to be
dropped on the floor.
E.g.
.PHONY: foo bar
.DEFAULT: foo bar
OMakeFlags(--output-only-errors)
foo:
echo This is foo
bar:
echo This is bar
exit 1
would only print "This is bar", but would drop "This is foo".
> Another thing I noticed when testing this is that when a command in a
> rule fails, but doesn't produce any output, you won't see what the
> failing command was with default omake options.
>
> Consider the following rule:
>
> foo:
> false
>
> If I run "omake foo" with this, I get this output:
>
> *** omake: reading OMakefiles
> *** omake: finished reading OMakefiles (0.0 sec)
> *** omake: 10/11 targets are up to date
> *** omake: failed (0.1 sec, 0/0 scans, 1/1 rules, 0/61 digests)
> *** omake: targets were not rebuilt because of errors:
> <phony <foo>>
>
> This will make users scratch their head until they try again with
> --verbose. But I think that the "- exit" line that appears with
> --verbose or --print-exit would be very helpful in this case.
>
> So my suggestion is to always print the exit status line when the exit
> status is nonzero.
>
Good point! Care to file a Bugzilla entry to make sure this is not
overlooked?
Thanks!
Aleksey
--
Aleksey Nogin, Research Scientist
Advanced Technologies Department, Information & System Sciences Lab
HRL Laboratories, LLC, Malibu, CA
More information about the Omake
mailing list