From: Simon Ruderich Date: Wed, 14 Aug 2013 13:18:12 +0000 (+0200) Subject: Use here-doc for --version output. X-Git-Tag: 0.05~23 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=e3658a072c1a1b97147af5695b95817b4d5e4d9b;p=blhc%2Fblhc.git Use here-doc for --version output. --- diff --git a/bin/blhc b/bin/blhc index c7457d2..e2658ae 100755 --- a/bin/blhc +++ b/bin/blhc @@ -570,7 +570,8 @@ if ($option_help) { Pod::Usage::pod2usage(1); } if ($option_version) { - print "blhc $VERSION Copyright (C) 2012-2013 Simon Ruderich + print <<"EOF"; +blhc $VERSION Copyright (C) 2012-2013 Simon Ruderich This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -584,7 +585,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . -"; +EOF exit 0; }