diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-10-02 10:50:35 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-10-23 09:38:00 +0300 |
commit | 5522e9c40a6b2beb1cfea51e90351b90fada5931 (patch) | |
tree | 201e4f57bf4d3240b02d5b34856c4bdbff8f1860 /src/cmd/show_gen.rs | |
parent | 1baa17c93e6cccd6194592076210625364058615 (diff) | |
download | obnam2-5522e9c40a6b2beb1cfea51e90351b90fada5931.tar.gz |
refactor: use clap instead of structopt
clap version 3 basically replaces structopt entirely.
Sponsored-by: author
Diffstat (limited to 'src/cmd/show_gen.rs')
-rw-r--r-- | src/cmd/show_gen.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/show_gen.rs b/src/cmd/show_gen.rs index f47a07b..95d3fd3 100644 --- a/src/cmd/show_gen.rs +++ b/src/cmd/show_gen.rs @@ -7,17 +7,17 @@ use crate::db::DbInt; use crate::error::ObnamError; use crate::fsentry::FilesystemKind; use crate::generation::GenId; +use clap::Parser; use indicatif::HumanBytes; use serde::Serialize; -use structopt::StructOpt; use tempfile::NamedTempFile; use tokio::runtime::Runtime; /// Show information about a generation. -#[derive(Debug, StructOpt)] +#[derive(Debug, Parser)] pub struct ShowGeneration { /// Reference to the generation. Defaults to latest. - #[structopt(default_value = "latest")] + #[clap(default_value = "latest")] gen_id: String, } |