Closed azeey closed 4 months ago
@azeey , What do you think about allowing -r ""
? The option -r
is configured as a parameter that accepts a value. Not sure if we can make the value optional.
I believe you can add ->expected(0,1)
to make it take 0 or 1 arguments
I'm okay with -r ""
, but if @mjcarroll's suggestion works, that would be even better.
I believe you can add
->expected(0,1)
to make it take 0 or 1 arguments
Thanks, it works!
Desired behavior
Currently,
gz service -r
requires specifyingunused: true
on requests with anEmpty
request type. This is not well documented and seems unintuitive. It would be great if the user is able to provide an empty message (gz service -r ' ' ...
) or no value at all (gz service -r ...
).Together with #473, it would be nice to be able to run
instead of
Alternatives considered
n/a
Implementation suggestion
Handle the case where
reqtype
isEmpty
so that an empty message is considered valid.Additional context
n/a