From b7d2860d5baaa4cf7b4c1f9ae3234a3bf02102dd Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Mon, 18 Jun 2012 23:39:53 +0200 Subject: [PATCH] Allow negating bool cli options by using '--no-foo' or '--nofoo' --- lib/Slic3r/Config.pm | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/Slic3r/Config.pm b/lib/Slic3r/Config.pm index 13f79b522..c2100bb59 100644 --- a/lib/Slic3r/Config.pm +++ b/lib/Slic3r/Config.pm @@ -57,7 +57,7 @@ our $Options = { }, 'use_relative_e_distances' => { label => 'Use relative E distances', - cli => 'use-relative-e-distances', + cli => 'use-relative-e-distances!', type => 'bool', }, 'extrusion_axis' => { @@ -72,17 +72,17 @@ our $Options = { }, 'gcode_arcs' => { label => 'Use native G-code arcs', - cli => 'gcode-arcs', + cli => 'gcode-arcs!', type => 'bool', }, 'g0' => { label => 'Use G0 for travel moves', - cli => 'g0', + cli => 'g0!', type => 'bool', }, 'gcode_comments' => { label => 'Verbose G-code', - cli => 'gcode-comments', + cli => 'gcode-comments!', type => 'bool', }, @@ -174,7 +174,7 @@ our $Options = { # acceleration options 'acceleration' => { label => 'Enable acceleration control', - cli => 'acceleration', + cli => 'acceleration!', type => 'bool', }, 'perimeter_acceleration' => { @@ -271,12 +271,12 @@ our $Options = { }, 'randomize_start' => { label => 'Randomize starting points', - cli => 'randomize-start', + cli => 'randomize-start!', type => 'bool', }, 'support_material' => { label => 'Generate support material', - cli => 'support-material', + cli => 'support-material!', type => 'bool', }, 'support_material_tool' => { @@ -357,7 +357,7 @@ our $Options = { # cooling options 'cooling' => { label => 'Enable cooling', - cli => 'cooling', + cli => 'cooling!', type => 'bool', }, 'min_fan_speed' => { @@ -397,7 +397,7 @@ our $Options = { }, 'fan_always_on' => { label => 'Keep fan always on', - cli => 'fan-always-on', + cli => 'fan-always-on!', type => 'bool', }, @@ -465,7 +465,7 @@ our $Options = { # sequential printing options 'complete_objects' => { label => 'Complete individual objects (watch out for extruder collisions)', - cli => 'complete-objects', + cli => 'complete-objects!', type => 'bool', }, 'extruder_clearance_radius' => {