if loading irb-pager files, print, that it must be installed.
This commit is contained in:
parent
77dec1b180
commit
989deed03b
10
truckle
10
truckle
|
@ -16,9 +16,17 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
require 'irb-pager'
|
|
||||||
require 'shellwords'
|
require 'shellwords'
|
||||||
require 'getoptlong'
|
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
|
class GetoptLong
|
||||||
def argv=( v) @argv = v end
|
def argv=( v) @argv = v end
|
||||||
|
|
Loading…
Reference in a new issue