summaryrefslogtreecommitdiffstats
path: root/src/actions/unroll.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/unroll.rs')
-rw-r--r--src/actions/unroll.rs11
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;