summaryrefslogtreecommitdiff
path: root/src/resource.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-05-14 13:33:05 +0000
committerLars Wirzenius <liw@liw.fi>2022-05-14 13:33:05 +0000
commitaaca2d2797631b310c8990257cff9b01c658478c (patch)
tree80ef2b8fa1fa50548cf73b2abdc16736c7ae9ef1 /src/resource.rs
parent27b617cbaa9e6d4fb58a0b971b428a05da8ec5d9 (diff)
parent37d304a6f95b8488d45f9adcc0c8742d3b121d2f (diff)
downloadsubplot-aaca2d2797631b310c8990257cff9b01c658478c.tar.gz
Merge branch 'clap3-derive' into 'main'
(cli): Change from structopt to clap3-derive Closes #284 See merge request subplot/subplot!276
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",