Upgrade arg parsing to clap v3, take two (#900)
* Upgrade arg parsing to clap v3 * Bump Rust version in CI to 1.57.0 * Make clippy happy Co-authored-by: Roey Darwish Dror <roey.ghost@gmail.com>
This commit is contained in:
@@ -5,12 +5,11 @@ use std::io;
|
||||
use std::process::exit;
|
||||
|
||||
use anyhow::{anyhow, Result};
|
||||
use clap::{crate_version, Parser};
|
||||
use console::Key;
|
||||
use log::debug;
|
||||
use log::LevelFilter;
|
||||
use pretty_env_logger::formatted_timed_builder;
|
||||
use structopt::clap::crate_version;
|
||||
use structopt::StructOpt;
|
||||
|
||||
use self::config::{CommandLineArgs, Config, Step};
|
||||
use self::error::StepFailed;
|
||||
@@ -39,7 +38,7 @@ fn run() -> Result<()> {
|
||||
|
||||
let base_dirs = directories::BaseDirs::new().ok_or_else(|| anyhow!("No base directories"))?;
|
||||
|
||||
let opt = CommandLineArgs::from_args();
|
||||
let opt = CommandLineArgs::parse();
|
||||
let mut builder = formatted_timed_builder();
|
||||
|
||||
if opt.verbose {
|
||||
|
||||
Reference in New Issue
Block a user