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/list_backup_versions.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/list_backup_versions.rs')
-rw-r--r-- | src/cmd/list_backup_versions.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/list_backup_versions.rs b/src/cmd/list_backup_versions.rs index 859d91c..c78ccfc 100644 --- a/src/cmd/list_backup_versions.rs +++ b/src/cmd/list_backup_versions.rs @@ -4,13 +4,13 @@ use crate::config::ClientConfig; use crate::dbgen::{schema_version, DEFAULT_SCHEMA_MAJOR, SCHEMA_MAJORS}; use crate::error::ObnamError; -use structopt::StructOpt; +use clap::Parser; /// List supported backup schema versions. -#[derive(Debug, StructOpt)] +#[derive(Debug, Parser)] pub struct ListSchemaVersions { /// List only the default version. - #[structopt(long)] + #[clap(long)] default_only: bool, } |