Skip to content

Commit

Permalink
Accept and ignore --no-plater and --gui-mode. prusa3d#3876
Browse files Browse the repository at this point in the history
  • Loading branch information
alranel committed Apr 11, 2017
1 parent 5cc2d34 commit 5c2a05c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions slic3r.pl
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ BEGIN
'duplicate-grid=s' => \$opt{duplicate_grid},
'print-center=s' => \$opt{print_center},
'dont-arrange' => \$opt{dont_arrange},

# legacy options, ignored
'no-plater' => \$opt{no_plater},
'gui-mode=s' => \$opt{gui_mode},
);
foreach my $opt_key (keys %{$Slic3r::Config::Options}) {
my $cli = $Slic3r::Config::Options->{$opt_key}->{cli} or next;
Expand All @@ -60,6 +64,9 @@ BEGIN

@ARGV = grep !/^-psn_\d/, @ARGV if $^O eq 'darwin';
GetOptions(%options) or usage(1);

warn "--no-plater option is deprecated; ignoring\n" if $opt{no_plater};
warn "--gui-mode option is deprecated (Slic3r now has only Expert Mode); ignoring\n" if $opt{gui_mode};
}

# load configuration files
Expand Down

0 comments on commit 5c2a05c

Please sign in to comment.