Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <henrik@brixandersen.dk>2012-06-16 19:16:50 +0400
committerHenrik Brix Andersen <henrik@brixandersen.dk>2012-06-16 19:16:50 +0400
commitc50cabe095cbb19972e65a4de25c67d0cfc988d4 (patch)
treee1f8bb2ef62776904869afc54add415f087be84f /slic3r.pl
parent4d2a813450446abdb1816d9a13fb83970418df4d (diff)
Add --version argument
Diffstat (limited to 'slic3r.pl')
-rwxr-xr-xslic3r.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/slic3r.pl b/slic3r.pl
index e9df816ac..15e3904ae 100755
--- a/slic3r.pl
+++ b/slic3r.pl
@@ -17,6 +17,7 @@ my %cli_options = ();
{
my %options = (
'help' => sub { usage() },
+ 'version' => sub { print "$Slic3r::VERSION\n"; exit 0 },
'debug' => \$Slic3r::debug,
'gui' => \$opt{gui},
@@ -121,6 +122,7 @@ written by Alessandro Ranellucci <aar\@cpan.org> - http://slic3r.org/
Usage: slic3r.pl [ OPTIONS ] file.stl
--help Output this usage screen and exit
+ --version Output the version of Slic3r and exit
--save <file> Save configuration to the specified file
--load <file> Load configuration from the specified file. It can be used
more than once to load options from multiple files.