mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Allow negating bool cli options by using '--no-foo' or '--nofoo'
This commit is contained in:
		
							parent
							
								
									48d345c189
								
							
						
					
					
						commit
						b7d2860d5b
					
				
					 1 changed files with 10 additions and 10 deletions
				
			
		| 
						 | 
					@ -57,7 +57,7 @@ our $Options = {
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    'use_relative_e_distances' => {
 | 
					    'use_relative_e_distances' => {
 | 
				
			||||||
        label   => 'Use relative E distances',
 | 
					        label   => 'Use relative E distances',
 | 
				
			||||||
        cli     => 'use-relative-e-distances',
 | 
					        cli     => 'use-relative-e-distances!',
 | 
				
			||||||
        type    => 'bool',
 | 
					        type    => 'bool',
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    'extrusion_axis' => {
 | 
					    'extrusion_axis' => {
 | 
				
			||||||
| 
						 | 
					@ -72,17 +72,17 @@ our $Options = {
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    'gcode_arcs' => {
 | 
					    'gcode_arcs' => {
 | 
				
			||||||
        label   => 'Use native G-code arcs',
 | 
					        label   => 'Use native G-code arcs',
 | 
				
			||||||
        cli     => 'gcode-arcs',
 | 
					        cli     => 'gcode-arcs!',
 | 
				
			||||||
        type    => 'bool',
 | 
					        type    => 'bool',
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    'g0' => {
 | 
					    'g0' => {
 | 
				
			||||||
        label   => 'Use G0 for travel moves',
 | 
					        label   => 'Use G0 for travel moves',
 | 
				
			||||||
        cli     => 'g0',
 | 
					        cli     => 'g0!',
 | 
				
			||||||
        type    => 'bool',
 | 
					        type    => 'bool',
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    'gcode_comments' => {
 | 
					    'gcode_comments' => {
 | 
				
			||||||
        label   => 'Verbose G-code',
 | 
					        label   => 'Verbose G-code',
 | 
				
			||||||
        cli     => 'gcode-comments',
 | 
					        cli     => 'gcode-comments!',
 | 
				
			||||||
        type    => 'bool',
 | 
					        type    => 'bool',
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
| 
						 | 
					@ -174,7 +174,7 @@ our $Options = {
 | 
				
			||||||
    # acceleration options
 | 
					    # acceleration options
 | 
				
			||||||
    'acceleration' => {
 | 
					    'acceleration' => {
 | 
				
			||||||
        label   => 'Enable acceleration control',
 | 
					        label   => 'Enable acceleration control',
 | 
				
			||||||
        cli     => 'acceleration',
 | 
					        cli     => 'acceleration!',
 | 
				
			||||||
        type    => 'bool',
 | 
					        type    => 'bool',
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    'perimeter_acceleration' => {
 | 
					    'perimeter_acceleration' => {
 | 
				
			||||||
| 
						 | 
					@ -271,12 +271,12 @@ our $Options = {
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    'randomize_start' => {
 | 
					    'randomize_start' => {
 | 
				
			||||||
        label   => 'Randomize starting points',
 | 
					        label   => 'Randomize starting points',
 | 
				
			||||||
        cli     => 'randomize-start',
 | 
					        cli     => 'randomize-start!',
 | 
				
			||||||
        type    => 'bool',
 | 
					        type    => 'bool',
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    'support_material' => {
 | 
					    'support_material' => {
 | 
				
			||||||
        label   => 'Generate support material',
 | 
					        label   => 'Generate support material',
 | 
				
			||||||
        cli     => 'support-material',
 | 
					        cli     => 'support-material!',
 | 
				
			||||||
        type    => 'bool',
 | 
					        type    => 'bool',
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    'support_material_tool' => {
 | 
					    'support_material_tool' => {
 | 
				
			||||||
| 
						 | 
					@ -357,7 +357,7 @@ our $Options = {
 | 
				
			||||||
    # cooling options
 | 
					    # cooling options
 | 
				
			||||||
    'cooling' => {
 | 
					    'cooling' => {
 | 
				
			||||||
        label   => 'Enable cooling',
 | 
					        label   => 'Enable cooling',
 | 
				
			||||||
        cli     => 'cooling',
 | 
					        cli     => 'cooling!',
 | 
				
			||||||
        type    => 'bool',
 | 
					        type    => 'bool',
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    'min_fan_speed' => {
 | 
					    'min_fan_speed' => {
 | 
				
			||||||
| 
						 | 
					@ -397,7 +397,7 @@ our $Options = {
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    'fan_always_on' => {
 | 
					    'fan_always_on' => {
 | 
				
			||||||
        label   => 'Keep fan always on',
 | 
					        label   => 'Keep fan always on',
 | 
				
			||||||
        cli     => 'fan-always-on',
 | 
					        cli     => 'fan-always-on!',
 | 
				
			||||||
        type    => 'bool',
 | 
					        type    => 'bool',
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
| 
						 | 
					@ -465,7 +465,7 @@ our $Options = {
 | 
				
			||||||
    # sequential printing options
 | 
					    # sequential printing options
 | 
				
			||||||
    'complete_objects' => {
 | 
					    'complete_objects' => {
 | 
				
			||||||
        label   => 'Complete individual objects (watch out for extruder collisions)',
 | 
					        label   => 'Complete individual objects (watch out for extruder collisions)',
 | 
				
			||||||
        cli     => 'complete-objects',
 | 
					        cli     => 'complete-objects!',
 | 
				
			||||||
        type    => 'bool',
 | 
					        type    => 'bool',
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    'extruder_clearance_radius' => {
 | 
					    'extruder_clearance_radius' => {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue