summaryrefslogtreecommitdiff
path: root/src/bin/jt.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-04-25 16:32:41 +0000
committerLars Wirzenius <liw@liw.fi>2022-04-25 16:32:41 +0000
commit491396ae87d5f0061c7f5da9f404d988f4e16bac (patch)
tree3dd6e59954434782941c5cca4d0562e4041777b6 /src/bin/jt.rs
parent4305a22cd719ec1aaadb46796bbd7fc84f2161f0 (diff)
parent398f412253d9a9c00ba7fc4dfc48591a8c17789b (diff)
downloadjt2-491396ae87d5f0061c7f5da9f404d988f4e16bac.tar.gz
Merge branch 'clap3' into 'main'
chore: port from structopt to clap v3 See merge request larswirzenius/jt!31
Diffstat (limited to 'src/bin/jt.rs')
-rw-r--r--src/bin/jt.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/jt.rs b/src/bin/jt.rs
index 11fc45d..21bf254 100644
--- a/src/bin/jt.rs
+++ b/src/bin/jt.rs
@@ -1,7 +1,7 @@
use jt::config::Configuration;
use jt::opt::{Opt, SubCommand};
-use structopt::StructOpt;
+use clap::Parser;
fn main() {
if let Err(err) = do_work() {
@@ -12,7 +12,7 @@ fn main() {
fn do_work() -> anyhow::Result<()> {
pretty_env_logger::init_custom_env("JT_LOG");
- let opt = Opt::from_args();
+ let opt = Opt::parse();
let config = Configuration::read(&opt)?;
match opt.cmd {
SubCommand::Config(x) => x.run(&config)?,