This should be easy to achieve through use of of [clap-generate](https://github.com/clap-rs/clap/tree/master/clap_generate).