Skip to content

Commit a27ca90

Browse files
committed
fix missed arg
1 parent 0bc0957 commit a27ca90

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dsc/src/args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub enum SubCommand {
6565
#[clap(name = "type", short, long, help = "The type of DSC schema to get")]
6666
dsc_type: DscType,
6767
#[clap(short = 'o', long, help = "The output format to use")]
68-
format: Option<OutputFormat>,
68+
output_format: Option<OutputFormat>,
6969
},
7070
}
7171

dsc/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn main() {
6262
SubCommand::Resource { subcommand } => {
6363
subcommand::resource(&subcommand);
6464
},
65-
SubCommand::Schema { dsc_type , format } => {
65+
SubCommand::Schema { dsc_type , output_format } => {
6666
let schema = util::get_schema(dsc_type);
6767
let json = match serde_json::to_string(&schema) {
6868
Ok(json) => json,
@@ -71,7 +71,7 @@ fn main() {
7171
exit(util::EXIT_JSON_ERROR);
7272
}
7373
};
74-
util::write_output(&json, format.as_ref());
74+
util::write_output(&json, output_format.as_ref());
7575
},
7676
}
7777

0 commit comments

Comments
 (0)