Resolve clap TODO items

This commit is contained in:
Wolfgang Silbermayr
2022-08-08 11:51:57 +02:00
parent 2a385c7882
commit 1c67ec7894
5 changed files with 5 additions and 36 deletions

View File

@@ -86,18 +86,12 @@ pub struct CreateExe {
#[clap(name = "HEADER", long = "header", verbatim_doc_comment)]
header: Option<PathBuf>,
// TODO: multiple_values or multiple_occurrences, or both?
// TODO: number_of_values = 1 required? need to read some more documentation
// before I can be sure
#[clap(short = 'm', multiple_occurrences = true, number_of_values = 1)]
#[clap(short = 'm')]
cpu_features: Vec<CpuFeature>,
// TODO: multiple_values or multiple_occurrences, or both?
// TODO: number_of_values = 1 required? need to read some more documentation
// before I can be sure
/// Additional libraries to link against.
/// This is useful for fixing linker errors that may occur on some systems.
#[clap(short = 'l', multiple_occurrences = true, number_of_values = 1)]
#[clap(short = 'l')]
libraries: Vec<String>,
#[clap(flatten)]