diff options
author | Joseph Lenox <lenox.joseph@gmail.com> | 2017-09-02 21:36:20 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2017-11-30 20:42:31 +0300 |
commit | 488feb23352b07c27b07468408f1318dd745810f (patch) | |
tree | 5ce86680ada44081a8ad7c74fab5f751d196fd87 /slic3r.pl | |
parent | d161d4f78cd1f3ebcc4de1878574094225447fe6 (diff) |
Added --no-gui flag to force CLI usage (allows for CLI usage with AppImage build).
Forced --gui flag in AppImage build.
Diffstat (limited to 'slic3r.pl')
-rwxr-xr-x | slic3r.pl | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -31,6 +31,7 @@ my %cli_options = (); 'debug' => \$Slic3r::debug, 'gui' => \$opt{gui}, + 'no-gui' => \$opt{no_gui}, 'o|output=s' => \$opt{output}, 'save=s' => \$opt{save}, @@ -102,7 +103,7 @@ $config->apply($cli_config); # launch GUI my $gui; -if ((!@ARGV || $opt{gui}) && !$opt{save} && eval "require Slic3r::GUI; 1") { +if ((!@ARGV || $opt{gui}) && !(!@ARGV || $opt{no_gui}) && !$opt{save} && eval "require Slic3r::GUI; 1") { { no warnings 'once'; $Slic3r::GUI::datadir = Slic3r::decode_path($opt{datadir} // ''); @@ -267,6 +268,8 @@ Usage: slic3r.pl [ OPTIONS ] [ file.stl ] [ file2.stl ] ... --gui Forces the GUI launch instead of command line slicing (if you supply a model file, it will be loaded into the plater) --no-plater Disable the plater tab + --no-gui Forces the command line slicing instead of gui. + This takes precedence over --gui if both are present. --autosave <file> Automatically export current configuration to the specified file Output options: |