-
Notifications
You must be signed in to change notification settings - Fork 280
Ability to negate server option #1466
Comments
I realise the
Although, it doesn't appear to apply to other options such as
|
I can confirm I wanted Dredd to support So yes, this is a wanted feature. I'm surprised I didn't find it mentioned in #1101, but I remember mentioning it to @netmilk as one of the first things when I was introduced to Dredd 🙂 |
Can this be solved by using another CLI framework, i.e. yargs? |
It also appears that Optimist supports options negation out of the box. Can we apply this for our use case?
|
Yes, please 🙂 #845 |
When I have a configuration file, such as:
I'd like to be able to override the server, to not run, for example if I am running the script against the already ran server in some kind of debug mode, or docker image etc.
Having an argument such as
--no-server
which negates the server option would be neat.Workaround
Although, this suffers from slowing down the tests as there is 3 second wait due to
server-wait
.Describe the solution you'd like
I'd like to see
--no-server
(or something similiar,--no
is common pattern for disabling boolean flags in a lot of tools I use so this feels like an intuitive option, although never seen pattern where main argument requires option (i.e,git --no-pager
).Another example:
https://github.com/kylef/swiftenv/blob/2caa152249c02af42360afd737c9b7ae679d2910/libexec/swiftenv-install#L263-L266
The text was updated successfully, but these errors were encountered: