-
-
Notifications
You must be signed in to change notification settings - Fork 73
The -o option can be used multiple times #310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Would not it be easier to leave CommandLine as is, change parameter to repeatable and split it in loadOptions()? |
|
@dg Probably yes. The CommandLine::NORMALIZER => function ($arg) {
list($value, $path) = explode(':', $arg, 2);
if (...) throw ...
};I'll try how it will look like. |
Usage is: -o console -o tap:output.tap -o junit:output.xml
|
@dg What about such approach (last commit)? |
|
I tried to find if there is any pattern how should these parameters look, but it seems that this is pole neorané … not standardized. Sometimes it is used this way: Which looks logical, but little bit weird. So syntax is fine for me. |
| --stop-on-fail Stop execution upon the first failure. | ||
| -j <num> Run <num> jobs in parallel (default: 8). | ||
| -o <console|tap|junit|log|none> | ||
| Specify output format. Repeatable with parameter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specify one or more output formats with optional file name is probably better that Repeatable with parameter.
|
In fact ENUM is used by Tester, try |
Ups, I was rash. I have to find a way how to preserve |
20198c1 to
1b583e9
Compare
715ed4e to
334dc33
Compare
c7e8a12 to
df5e87f
Compare
b9711f5 to
3f273cf
Compare
37f5151 to
c3bd1b2
Compare
f2dae8a to
20b7c0b
Compare
e9c3f27 to
666cb04
Compare
977e96a to
dd5bc63
Compare
4969211 to
81b3703
Compare
|
Closing in favour of #329 |
For example:
Tester ASCII art logo is shown, only if output for stdout (without parameter) is not passed.