These are chat archives for kbknapp/clap-rs

21st
Sep 2016
Andreas Tolfsen
@andreastt
Sep 21 2016 18:04
Is it possible with clap to register aliases for arguments?
I have a case where we have migrated one argument to a different name, but want to add a hidden alias for it.
Kevin K.
@kbknapp
Sep 21 2016 18:16
No, arguments don't support that, only subcommands...though its a good idea! Would you mind filling an issue for it?
The best thing you can do for the time being is have both arguments dispatch to the same handling code
And set the old argument to Arg::hidden(true)
Which is essentially the same as aliases... just a little more manually done
@andreastt