We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 407a6d3 commit f1b238aCopy full SHA for f1b238a
1 file changed
cli/src/main.rs
@@ -94,7 +94,7 @@ struct Opt {
94
extra_attribute_name: Option<String>,
95
#[arg(long)]
96
/// Reorder paths to minimize travel time
97
- optimize_path_order: bool,
+ optimize_path_order: Option<bool>,
98
}
99
100
fn main() -> io::Result<()> {
@@ -171,7 +171,9 @@ fn main() -> io::Result<()> {
171
172
173
settings.conversion.extra_attribute_name = opt.extra_attribute_name;
174
- settings.conversion.optimize_path_order = opt.optimize_path_order;
+ if let Some(optimize_path_order) = opt.optimize_path_order {
175
+ settings.conversion.optimize_path_order = optimize_path_order;
176
+ }
177
178
if let Version::Unknown(ref unknown) = settings.version {
179
error!(
0 commit comments