diff --git a/migra-cli/src/main.rs b/migra-cli/src/main.rs index 272d7a1..2a3a0e7 100644 --- a/migra-cli/src/main.rs +++ b/migra-cli/src/main.rs @@ -1,12 +1,8 @@ #![deny(clippy::all)] -use structopt::StructOpt; - -#[derive(Debug, StructOpt)] -enum AppOpt { - Init, -} +mod opts; +use opts::{AppOpt, StructOpt}; fn main() { let opt = AppOpt::from_args(); diff --git a/migra-cli/src/opts.rs b/migra-cli/src/opts.rs new file mode 100644 index 0000000..1d3fdfe --- /dev/null +++ b/migra-cli/src/opts.rs @@ -0,0 +1,6 @@ +pub use structopt::StructOpt; + +#[derive(Debug, StructOpt)] +pub(crate) enum AppOpt { + Init, +}