Skip to content

Commit

Permalink
Update clap to 3.1 (#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
XAMPPRocky authored Feb 22, 2022
1 parent 0fb0994 commit 44903d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ quilkin-macros = { version = "0.3.0-dev", path = "./macros" }
base64 = "0.13.0"
base64-serde = "0.6.1"
bytes = { version = "1.1.0", features = ["serde"] }
clap = { version = "3", features = ["cargo"] }
clap = { version = "3.1", features = ["cargo"] }
dashmap = "4.0.2"
either = "1.6.1"
hyper = "0.14.15"
Expand Down
9 changes: 5 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

use clap::{App, AppSettings, Arg};
use clap::{Arg, Command};
use std::sync::Arc;
use tracing::info;

Expand All @@ -37,12 +37,13 @@ async fn main() -> quilkin::Result<()> {
.help("The YAML configuration file")
.takes_value(true);

let cli = App::new(clap::crate_name!())
let cli = Command::new(clap::crate_name!())
.version(&*version)
.about(clap::crate_description!())
.setting(AppSettings::SubcommandRequiredElseHelp)
.subcommand_required(true)
.arg_required_else_help(true)
.subcommand(
App::new("run")
Command::new("run")
.about("Start Quilkin process.")
.arg(config_arg.clone()),
)
Expand Down

0 comments on commit 44903d1

Please sign in to comment.