Export to GitHub

specs - issue #57

--errors-only option


Posted on Feb 18, 2009 by Quick Panda

That should output both x-es and failures, but no good results.

Comment #1

Posted on Feb 19, 2009 by Massive Giraffe

The name of the option is -xOnly or --failedOnly as described here:

http://code.google.com/p/specs/wiki/RunningSpecs#Run_your_specification_in_the_Consol e. It should work ok.

Comment #2

Posted on Feb 19, 2009 by Quick Panda

Do you mean -xOnly is synonym of --failedOnly? It's not clear.

Comment #3

Posted on Feb 19, 2009 by Massive Giraffe

Yes it is.

--failedOnly is the "full" option name, while in -xOnly, "x" represents the messages appearing with an "x" in the console. Does any of these 2 options work for you?

Comment #4

Posted on Feb 19, 2009 by Quick Panda

Options work.

Please, document they are equivalent.

Option names are very unusual to Unix. I think, no caps should be used, and all multichar option names together should either start with single minus or start with two minuses.

Comment #5

Posted on Mar 2, 2009 by Massive Giraffe

I have documented that the options are equivalent and I have removed the necessity to have caps. But for now I prefer to keep short names even with one dash. It's a compromise between:

  • less typing
  • understandable names

I propose that unless there are other convergent opinions on the options names that we leave it that way.

On the other hand, you gave me the idea of adding a -h or --help option to describe the existing options in case one doesn't remember their names (in 1.4.4-SNAPSHOT).

Comment #6

Posted on Feb 14, 2010 by Massive Giraffe

(No comment was entered for this change.)

Status: Verified

Labels:
Type-Defect Priority-Medium