s2-cli icon indicating copy to clipboard operation
s2-cli copied to clipboard

`reconfigure-basin` / `reconfigure-stream` don't work for flattened args

Open shikhar opened this issue 1 year ago • 4 comments

This seems like a clap behaviour we will need to work around - if an Option<T> is being flattened, it stays None even if the flattened args are specified

shikhar avatar May 12 '25 12:05 shikhar

Doesn't seem like that the issue is Option<T> since reconfigure-stream works completely as expected. Something to do with flattening of default_stream_config in reconfigure-basin.

vrongmeal avatar May 13 '25 09:05 vrongmeal

Yeah, the issue is more about nested "flattens". I added another layer of struct in TimestampingConfig and now unable to configure anything related to timestamping for reconfigure-stream.

vrongmeal avatar May 14 '25 10:05 vrongmeal

I think this is relevant: https://github.com/clap-rs/clap/issues/4697

(Known bug)

vrongmeal avatar May 14 '25 10:05 vrongmeal