From f861893293629f4f8c315b8042295df049973e29 Mon Sep 17 00:00:00 2001 From: Jamie Quigley Date: Thu, 7 Apr 2022 06:32:11 +0100 Subject: Update to clap 3.1.x (#289) --- src/command/server.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/command/server.rs') diff --git a/src/command/server.rs b/src/command/server.rs index ad7addfd..6047e5bf 100644 --- a/src/command/server.rs +++ b/src/command/server.rs @@ -1,20 +1,20 @@ +use clap::Parser; use eyre::Result; -use structopt::StructOpt; use atuin_server::launch; use atuin_server::settings::Settings; -#[derive(StructOpt)] +#[derive(Parser)] +#[clap(infer_subcommands = true)] pub enum Cmd { - #[structopt( - about="starts the server", - aliases=&["s", "st", "sta", "star"], - )] + /// Start the server Start { - #[structopt(help = "specify the host address to bind", long, short)] + /// The host address to bind + #[clap(long, short)] host: Option, - #[structopt(help = "specify the port to bind", long, short)] + /// The port to bind + #[clap(long, short)] port: Option, }, } -- cgit v1.3.1