aboutsummaryrefslogtreecommitdiff
path: root/dotup_cli/src/main.rs
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2021-10-30 21:09:56 +0100
committerGitHub <[email protected]>2021-10-30 21:09:56 +0100
commit89daa500b322f98436abb09a80c1a4e0b3c96a2e (patch)
treeee905efee3761f2cf3f8efdae52d159f25b2511d /dotup_cli/src/main.rs
parent450ec8fbae076543d8ccc2d363613f0ae778a01d (diff)
parent3b4b9aa6bc041f1e24761e94b1c052ad20f9ca66 (diff)
Merge pull request #11 from diogo464/dependabot/cargo/clap-3.0.0-beta.5
Bump clap from 3.0.0-beta.2 to 3.0.0-beta.5
Diffstat (limited to 'dotup_cli/src/main.rs')
-rw-r--r--dotup_cli/src/main.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/dotup_cli/src/main.rs b/dotup_cli/src/main.rs
index d500a7d..5f02e68 100644
--- a/dotup_cli/src/main.rs
+++ b/dotup_cli/src/main.rs
@@ -8,11 +8,11 @@ pub use config::Config;
8 8
9pub mod prelude { 9pub mod prelude {
10 pub use super::{utils, Config}; 10 pub use super::{utils, Config};
11 pub use clap::{AppSettings, Clap}; 11 pub use clap::{AppSettings, Parser};
12 pub use dotup::{Archive, Depot, DepotConfig, Link, LinkCreateParams, LinkID}; 12 pub use dotup::{Archive, Depot, DepotConfig, Link, LinkCreateParams, LinkID};
13} 13}
14 14
15use clap::{AppSettings, Clap}; 15use clap::{AppSettings, Parser};
16use flexi_logger::Logger; 16use flexi_logger::Logger;
17use std::{ 17use std::{
18 collections::HashMap, 18 collections::HashMap,
@@ -22,8 +22,7 @@ use std::{
22 22
23use prelude::*; 23use prelude::*;
24 24
25#[derive(Clap)] 25#[derive(Parser)]
26#[clap(setting = AppSettings::ColoredHelp)]
27struct Opts { 26struct Opts {
28 /// Path to the depot file. 27 /// Path to the depot file.
29 /// 28 ///
@@ -50,7 +49,7 @@ struct Opts {
50 subcmd: SubCommand, 49 subcmd: SubCommand,
51} 50}
52 51
53#[derive(Clap)] 52#[derive(Parser)]
54enum SubCommand { 53enum SubCommand {
55 Init(commands::init::Opts), 54 Init(commands::init::Opts),
56 Link(commands::link::Opts), 55 Link(commands::link::Opts),