Skip to content

Commit

Permalink
Uncomment language option until it's fully implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-si committed Feb 17, 2024
1 parent 8a5c16d commit ef00dcb
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ enum Commands {
/// The path to the spec file
#[arg(default_value = "./oclis.ncl")]
spec_file: Option<String>,

#[arg(short, long, default_value_t = Language::Json)]
language: Language,
//
// TODO: Reactivate when the `language` argument is used
// #[arg(short, long, default_value_t = Language::Json)]
// language: Language,
},
}

Expand Down Expand Up @@ -254,11 +255,11 @@ fn main() -> Result<(), String> {
match cli.command {
Commands::Build {
spec_file,
language,
// language,
} => {
if language != Language::Json {
println!("Value for language: {:?}", language);
}
// if language != Language::Json {
// println!("Value for language: {:?}", language);
// }

match spec_file.as_deref() {
Some(spec_file) => {
Expand Down

0 comments on commit ef00dcb

Please sign in to comment.