diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-12-01 06:39:48 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-12-01 06:39:48 +0000 |
commit | e9cb02bbfc6c1ff5321abfaaf1275dd301423b75 (patch) | |
tree | 64ecd8b3a2e6a36e34882ef93dcfcb5dfa148bd5 /src/bin/cli/mod.rs | |
parent | b65b621b7215d1873df9dce11f195d9bbd68ebe4 (diff) | |
parent | fb48f92c8092c5b9de8e15c0cb477efd1b7a6785 (diff) | |
download | subplot-e9cb02bbfc6c1ff5321abfaaf1275dd301423b75.tar.gz |
Merge branch 'clap4' into 'main'
(chore): Update to clap4
Closes #310
See merge request subplot/subplot!303
Diffstat (limited to 'src/bin/cli/mod.rs')
-rw-r--r-- | src/bin/cli/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/cli/mod.rs b/src/bin/cli/mod.rs index e78a92d..4e15efb 100644 --- a/src/bin/cli/mod.rs +++ b/src/bin/cli/mod.rs @@ -3,6 +3,7 @@ #![allow(unused)] use anyhow::Result; +use clap::ValueEnum; use log::trace; use serde::Serialize; use std::fmt::Debug; @@ -125,7 +126,7 @@ fn filename(name: Option<&Path>) -> String { } } -#[derive(Debug)] +#[derive(Debug, ValueEnum, Clone, Copy)] pub enum OutputFormat { Plain, Json, |