diff options
| author | Jamie Quigley <jamie@quigley.xyz> | 2022-04-07 06:32:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-07 06:32:11 +0100 |
| commit | f861893293629f4f8c315b8042295df049973e29 (patch) | |
| tree | 995af6417a0e02a05478703023f9c9438f9ac500 /src/command/server.rs | |
| parent | Add compact mode (#288) (diff) | |
| download | atuin-f861893293629f4f8c315b8042295df049973e29.zip | |
Update to clap 3.1.x (#289)
Diffstat (limited to 'src/command/server.rs')
| -rw-r--r-- | src/command/server.rs | 16 |
1 files changed, 8 insertions, 8 deletions
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<String>, - #[structopt(help = "specify the port to bind", long, short)] + /// The port to bind + #[clap(long, short)] port: Option<u16>, }, } |
