Skip to content

Commit

Permalink
aptlyctl: Fix wrong name for --architecture option
Browse files Browse the repository at this point in the history
The syntax to change the argument isn't `name =`, it's `long =`.

Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>
  • Loading branch information
refi64 committed Jul 18, 2023
1 parent 005dd29 commit c7faec8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aptlyctl/src/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@ fn parse_source(s: &str) -> Result<publish::Source, Box<dyn std::error::Error +
})
}
}

#[derive(Parser, Debug)]
pub struct PublishCreateOpts {
kind: SourceKind,
prefix: String,
#[clap(value_parser = parse_source)]
sources: Vec<publish::Source>,
#[clap(long, name = "architecture")]
#[clap(long = "architecture")]
architectures: Vec<String>,
#[clap(long)]
distribution: Option<String>,
Expand Down

0 comments on commit c7faec8

Please sign in to comment.