diff options
author | Nora <nora.widdecke@tu-bs.de> | 2019-02-26 23:31:56 +0100 |
---|---|---|
committer | Nora <nora.widdecke@tu-bs.de> | 2019-02-26 23:31:56 +0100 |
commit | b2d1176f6d6530804e6757ed20253ad8f375f30a (patch) | |
tree | 36ecb869cab572c9672259d1a68e9577f990130e /src/actions/unroll.rs | |
parent | 9e7cefd3dd5bff01ecbb063e3635a6a732593b64 (diff) |
move argument structs to the action modules
Diffstat (limited to 'src/actions/unroll.rs')
-rw-r--r-- | src/actions/unroll.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/actions/unroll.rs b/src/actions/unroll.rs index 882da7e..7c1bece 100644 --- a/src/actions/unroll.rs +++ b/src/actions/unroll.rs @@ -1,8 +1,15 @@ -use std::path::Path; +use std::path::{PathBuf, Path}; +use structopt::StructOpt; use crate::khline::KhLine; use crate::KhResult; -use crate::cli::UnrollArgs; + +#[derive(Debug, StructOpt)] +pub struct UnrollArgs { + /// The file to unroll + #[structopt(name = "path", parse(from_os_str))] + pub path: PathBuf, +} pub fn action_unroll(args: &UnrollArgs) -> KhResult<()> { let filepath = &args.path; |