aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-01-07 12:12:27 +0000
committerDaniel Mueller <deso@posteo.net>2020-01-07 12:12:27 +0000
commit47e4f7c9dd41caf5e6118419fbc12eca61090466 (patch)
treefd2d28c3f98b4483a2f3a26a459e9d6f89cab1d2 /src
parentddd34824b79d1af1b40d6a01509842d0b4d648ea (diff)
downloadnitrocli-47e4f7c9dd41caf5e6118419fbc12eca61090466.tar.gz
nitrocli-47e4f7c9dd41caf5e6118419fbc12eca61090466.tar.bz2
Derive structopt::StructOpt in Command!
As a preparation for the structopt transition, we derive StructOpt for the enums generated by Command! so that they can be used as a subcommand.
Diffstat (limited to 'src')
-rw-r--r--src/arg_util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arg_util.rs b/src/arg_util.rs
index d54dd94..b040e0d 100644
--- a/src/arg_util.rs
+++ b/src/arg_util.rs
@@ -80,7 +80,7 @@ macro_rules! Command {
impl_default!($name => $( $name::$var(::std::default::Default::default()) , )*);
};
( $name:ident, [ $( $var:ident => ($str:expr, $exec:expr), ) *] ) => {
- #[derive(Debug, PartialEq)]
+ #[derive(Debug, PartialEq, ::structopt::StructOpt)]
pub enum $name {
$(
$var,