summaryrefslogtreecommitdiff
path: root/src/bin/roadmap2dot.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/roadmap2dot.rs')
-rw-r--r--src/bin/roadmap2dot.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/bin/roadmap2dot.rs b/src/bin/roadmap2dot.rs
index 45e73ea..e92f41d 100644
--- a/src/bin/roadmap2dot.rs
+++ b/src/bin/roadmap2dot.rs
@@ -12,22 +12,21 @@
//! crate will be as a library.
use anyhow::Result;
+use clap::Parser;
use roadmap::from_yaml;
use std::fs::File;
use std::io::Read;
use std::path::PathBuf;
-use structopt::StructOpt;
const LABEL_WIDTH: usize = 20;
-#[derive(Debug, StructOpt)]
-#[structopt(
+#[derive(Debug, Parser)]
+#[clap(
name = "roadmap2dot",
about = "Create a dot graph of a roadmap in YAML"
)]
struct Opt {
- // The input filename.
- #[structopt(parse(from_os_str))]
+ /// The input filename.
filename: PathBuf,
}