These are chat archives for kbknapp/clap-rs

3rd
Dec 2016
Nathan Lilienthal
@nixpulvis
Dec 03 2016 00:19
Right, but functions and consts require explicit types including lifetimes.
Kevin K.
@kbknapp
Dec 03 2016 00:24
The issue wouldn't be explicit lifetimes, since you could probably just use 'static for both. But if you're trying to make them const that'll be harder because the methods aren't const. I've seen people just throw a single function in a mod that creates the subcommand and that works fine.
Nathan Lilienthal
@nixpulvis
Dec 03 2016 01:29
Right, it's just not very ergonomic. I'm wondering if there would be a better way :/
Kevin K.
@kbknapp
Dec 03 2016 02:32
I'd like to be able to make const, static or at least static bindings for exactly that, but I dont think it's possible to do yet. But it is in the back of my mind and am totally open to suggestions ;)