Skip to content

Commit 9e0e1c4

Browse files
authored
Merge pull request #86 from Kriskras99/fix/cli
fix(cli): ImplementAvroSchema doesn't roundtrip through Display and clap::ValueEnum
2 parents 7d478b6 + 84cdf34 commit 9e0e1c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ struct Args {
4242
pub derive_builders: bool,
4343

4444
/// Implement AvroSchema for generated record structs
45-
#[clap(long, value_name = "METHOD", default_value_t = Default::default())]
45+
#[clap(long, value_name = "METHOD", default_value_t, value_enum)]
4646
pub impl_schemas: ImplementAvroSchema,
4747

4848
/// Extract Derives for generated record structs, comma separated, e.g. `std::fmt::Display,std::string::ToString`

0 commit comments

Comments
 (0)