From c50cabe095cbb19972e65a4de25c67d0cfc988d4 Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Sat, 16 Jun 2012 17:16:50 +0200 Subject: [PATCH] Add --version argument --- README.markdown | 1 + slic3r.pl | 2 ++ 2 files changed, 3 insertions(+) diff --git a/README.markdown b/README.markdown index a7f35211c..f583067fd 100644 --- a/README.markdown +++ b/README.markdown @@ -76,6 +76,7 @@ The author is Alessandro Ranellucci. Usage: slic3r.pl [ OPTIONS ] file.stl --help Output this usage screen and exit + --version Output the version of Slic3r and exit --save Save configuration to the specified file --load Load configuration from the specified file. It can be used more than once to load options from multiple files. 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 - 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 Save configuration to the specified file --load Load configuration from the specified file. It can be used more than once to load options from multiple files.