summaryrefslogtreecommitdiff
path: root/src/resource.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/resource.rs')
-rw-r--r--src/resource.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resource.rs b/src/resource.rs
index 336c4e2..9ac9da8 100644
--- a/src/resource.rs
+++ b/src/resource.rs
@@ -5,19 +5,19 @@
//! binary, from template paths given on the CLI, or from paths built into the
//! binary and present on disk.
+use clap::Parser;
use std::io::{self, Cursor, Read};
use std::path::{Path, PathBuf};
use std::sync::Mutex;
-use structopt::StructOpt;
#[allow(missing_docs)]
-#[derive(Debug, StructOpt)]
+#[derive(Debug, Parser)]
// Options which relate to resource management
//
// To use this, include them *flat* in your options struct, and then after
// parsing, call the [ResourceOpts::handle()] function.
pub struct ResourceOpts {
- #[structopt(
+ #[clap(
long,
number_of_values = 1,
help = "Look for code templates and other resources in DIR",