Skip to content

Commit

Permalink
chore: try improve structure of --help for send commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Apr 23, 2024
1 parent d2ef2b0 commit f39b006
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions common/src/sender/provider/openid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use {anyhow::Context, url::Url};

#[cfg(feature = "clap")]
#[derive(Clone, Debug, PartialEq, Eq, clap::Args)]
#[cfg_attr(feature = "clap", command(next_help_heading = "OIDC"))]
pub struct OpenIdTokenProviderConfigArguments {
/// The client ID for using Open ID connect
#[arg(
Expand Down
8 changes: 4 additions & 4 deletions csaf/csaf-cli/src/cmd/send.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ use walker_extras::visitors::{SendArguments, SendVisitor};
/// Walk a source and send validated/retrieved documents to a sink.
#[derive(clap::Args, Debug)]
pub struct Send {
/// Skip (with a warning) documents which failed processing
#[arg(long)]
skip_failures: bool,

#[command(flatten)]
client: ClientArguments,

Expand All @@ -37,10 +41,6 @@ pub struct Send {

#[command(flatten)]
send: SendArguments,

/// Skip (with a warning) documents which failed processing
#[arg(long)]
skip_failures: bool,
}

impl Send {
Expand Down
8 changes: 4 additions & 4 deletions sbom/sbom-cli/src/cmd/send.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ use walker_extras::visitors::{SendArguments, SendVisitor};
/// Walk a source and send validated/retrieved documents to a sink.
#[derive(clap::Args, Debug)]
pub struct Send {
/// Skip (with a warning) documents which failed processing
#[arg(long)]
skip_failures: bool,

#[command(flatten)]
client: ClientArguments,

Expand All @@ -34,10 +38,6 @@ pub struct Send {

#[command(flatten)]
send: SendArguments,

/// Skip (with a warning) documents which failed processing
#[arg(long)]
skip_failures: bool,
}

impl Send {
Expand Down

0 comments on commit f39b006

Please sign in to comment.