diff --git a/src/args.rs b/src/args.rs index 1302438..63209af 100644 --- a/src/args.rs +++ b/src/args.rs @@ -354,7 +354,7 @@ pub fn get_config() -> (Config, usize) { //check whether it is possible to automatically fix body type //- at the end means "specified automatically" - let body_type = if args.value_of("body-type").is_none() + let body_type = if args.value_of("body-type").is_none() && args.value_of("parameter_template").unwrap_or("").is_empty() && ( ( !body.is_empty() && body.starts_with('{')