if loading irb-pager files, print, that it must be installed.

This commit is contained in:
Denis Knauf 2013-02-16 19:24:25 +01:00
parent 77dec1b180
commit 989deed03b

10
truckle
View file

@ -16,9 +16,17 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
require 'irb-pager'
require 'shellwords'
require 'getoptlong'
begin
require 'irb-pager'
rescue LoadError
STDERR.puts <<EOF
Loading IRB::Pager failed. Please install it first:
sudo gem install irb-pager
EOF
raise
end
class GetoptLong
def argv=( v) @argv = v end