second draft implementation of output_filename_format

This commit is contained in:
Clarence Risher 2011-12-26 04:20:45 -05:00
parent 342823fdf3
commit 1071b556cb
6 changed files with 72 additions and 31 deletions

View file

@ -20,7 +20,8 @@ my %cli_options = ();
'help' => sub { usage() },
'debug' => \$Slic3r::debug,
'o|output=s' => \$opt{output},
'o=s' => \$opt{output_filename},
'save=s' => \$opt{save},
'load=s' => \$opt{load},
@ -70,7 +71,7 @@ if ($ARGV[0]) {
my $skein = Slic3r::Skein->new(
input_file => $input_file,
output_file => $opt{output},
output_file => $opt{output_filename},
);
$skein->go;
@ -90,8 +91,14 @@ Usage: slic3r.pl [ OPTIONS ] file.stl
--help Output this usage screen and exit
--save <file> Save configuration to the specified file
--load <file> Load configuration from the specified file
-o, --output File to output gcode to (default: <inputfile>.gcode)
-o <filename> File name to output gcode to (default: --output)
Output options:
--output Output file name format (default: [input_filename_base].gcode)
examples:
[input_filename_base]_h[layer_height]_p[perimeters]_s[solid_layers].gcode
[input_filename]_center[print_center]_layer[layer_height].gcode
Printer options:
--nozzle-diameter Diameter of nozzle in mm (default: $Slic3r::nozzle_diameter)
--print-center Coordinates of the point to center the print around