Open Nemo157 opened 6 years ago
We could just add --bind
so that people can choose...
@spacekookie I don't like the idea of duplicating functionality in what's considered a limited space (e.g. there's a thing like too many flags). Instead I think it might be better to create a separate module called clap-bind-flag
, which exposes similar-but-different functionality than clap-port-flag
.
@yoshuawuyts TBH that's how I was reading @spacekookie's suggestion (although I was thinking in the same crate). That way it's up to the developer of the service to choose how they want to present it to their users.
I originally had a feature flag in mind, but creating a clap-bind-flag
crate that uses common functionality from this crate is probably better.
I realise I'm going against a lot of prior server CLI design, but I much prefer a more descriptive command line argument than the normal
--port
argument. A design that I've used in the past iswhich can reuse
SocketAddr::from_str
for parsing.