Dear rust devs on twitter, is there a better way to do this? This seems... verbose lol. But still better than what most of my CLIs with subcommands look like :P https://github.com/yoshuawuyts/playground-structopt/blob/master/src/main.rs#L35-L69 …
-
-
Replying to @yoshuawuyts
Good excuse to try out structopt! I don't think you need the `opts @` syntax (or at least I couldn't get it to work). Also putting enum contents in the match seemed a bit cluttered. Best I got to:https://gist.github.com/gibfahn/f4f20ffa41a47787a1a0c1b64a0147ba …
1 reply 0 retweets 1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.