Skip to content

Commit

Permalink
Merge pull request slic3r#456 from henrikbrixandersen/version
Browse files Browse the repository at this point in the history
Add --version argument
  • Loading branch information
alranel committed Jun 17, 2012
2 parents 4d2a813 + c50cabe commit cde9f50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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 <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.
Expand Down
2 changes: 2 additions & 0 deletions slic3r.pl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ BEGIN
{
my %options = (
'help' => sub { usage() },
'version' => sub { print "$Slic3r::VERSION\n"; exit 0 },

'debug' => \$Slic3r::debug,
'gui' => \$opt{gui},
Expand Down Expand Up @@ -121,6 +122,7 @@ sub usage {
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.
Expand Down

0 comments on commit cde9f50

Please sign in to comment.