diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-05-14 13:33:05 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-05-14 13:33:05 +0000 |
commit | aaca2d2797631b310c8990257cff9b01c658478c (patch) | |
tree | 80ef2b8fa1fa50548cf73b2abdc16736c7ae9ef1 /src/diagrams.rs | |
parent | 27b617cbaa9e6d4fb58a0b971b428a05da8ec5d9 (diff) | |
parent | 37d304a6f95b8488d45f9adcc0c8742d3b121d2f (diff) | |
download | subplot-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/diagrams.rs')
-rw-r--r-- | src/diagrams.rs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/diagrams.rs b/src/diagrams.rs index 2bdd0ed..6e0b875 100644 --- a/src/diagrams.rs +++ b/src/diagrams.rs @@ -7,29 +7,28 @@ use std::path::PathBuf; use std::process::{Command, Stdio}; use std::sync::Mutex; +use clap::Parser; use lazy_static::lazy_static; -use structopt::StructOpt; - -/// Resources used to configure paths for dot, plantuml.jar, and friends +// Resources used to configure paths for dot, plantuml.jar, and friends #[allow(missing_docs)] -#[derive(Debug, StructOpt)] +#[derive(Debug, Parser)] pub struct MarkupOpts { - #[structopt( + #[clap( long = "dot", help = "Path to the `dot` binary.", name = "DOTPATH", env = "SUBPLOT_DOT_PATH" )] dot_path: Option<PathBuf>, - #[structopt( + #[clap( long = "plantuml-jar", help = "Path to the `plantuml.jar` file.", name = "PLANTUMLJARPATH", env = "SUBPLOT_PLANTUML_JAR_PATH" )] plantuml_jar_path: Option<PathBuf>, - #[structopt( + #[clap( long = "java", help = "Path to Java executable (note, effectively overrides JAVA_HOME if set to an absolute path)", name = "JAVA_PATH", |