-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
81da29e
commit c686814
Showing
4 changed files
with
17 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ use clap::{Args, Parser, Subcommand}; | |
use serde_derive::{Deserialize, Serialize}; | ||
use std::path::PathBuf; | ||
|
||
#[derive(clap::ValueEnum, Clone, Copy, Debug, Deserialize, Serialize, PartialEq, Hash)] | ||
#[clap(rename_all = "lowercase")] | ||
#[derive(clap::ValueEnum, Clone, Copy, Debug, Deserialize, Serialize, Eq, PartialEq, Hash)] | ||
#[value(rename_all = "lowercase")] | ||
pub enum TargetLanguage { | ||
C, | ||
Cpp, | ||
|
@@ -13,7 +13,7 @@ pub enum TargetLanguage { | |
Python, | ||
} | ||
|
||
#[derive(clap::ValueEnum, Clone, Copy, Debug, Deserialize, Serialize, PartialEq, Hash)] | ||
#[derive(clap::ValueEnum, Clone, Copy, Debug, Deserialize, Serialize, Eq, PartialEq, Hash)] | ||
pub enum Platform { | ||
Native, | ||
Zephyr, | ||
|
@@ -120,10 +120,10 @@ pub enum Command { | |
} | ||
|
||
#[derive(Parser)] | ||
#[clap(name = "Lingua Franca package manager and build tool")] | ||
#[clap(author = "[email protected]")] | ||
#[clap(version = env!("CARGO_PKG_VERSION"))] | ||
#[clap(about = "Build system for the Lingua Franca coordination language", long_about = None)] | ||
#[command(name = "Lingua Franca package manager and build tool")] | ||
#[command(author = "[email protected]")] | ||
#[command(version = env!("CARGO_PKG_VERSION"))] | ||
#[command(about = "Build system for the Lingua Franca coordination language", long_about = None)] | ||
pub struct CommandLineArgs { | ||
/// which command of lingo to use | ||
#[clap(subcommand)] | ||
|
@@ -134,6 +134,6 @@ pub struct CommandLineArgs { | |
pub quiet: bool, | ||
|
||
/// lingo will give more detailed feedback | ||
#[clap(short, long, action)] | ||
#[arg(short, long)] | ||
pub verbose: bool, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters