Andrew Goode
Andrew Goode
@immykins Good questions! In the terms of the use-case, I think supporting `--no-bool` is really only useful when `--bool` is defined as `defaultValue: true`, such that the CLI author wants...
### Addressing your concerns > Implementation of this feature would be very easy, but explaining it to a user might not be. That hasn't stopped me before 🤣 But, seriously,...
> This flexibility is part of the point of the "top level run handler", in my eyes ... I guess I would want the run handler to take `(argv, context)`...
Thanks for that exercise. I'm not sure your 2nd option (the next-day thought) is viable, because I think we have to (or at least should) run the command handler _before_...
Works for me! Let's give it a shot.
Not that I know of. Would you be able to help contribute some?
Implicit commands are interesting since they equate a positive boolean option with running a command. Because of this over-simplification, implicit commands don't support most of what normal commands do (e.g....
I think your 3 error scenarios are valid and well summarized. Sywac attempts to handle number 1 and number 3, but it doesn't really handle number 2. If your program...
I should note, however, that you _can_ use `context.unexpectedError('Some message')` to achieve the desired effect of number 2 (without the need for a special Error class).
It's also possible to just `throw 'Some message'`, which also achieves the effect of number 2, but I don't recommend doing this.