From 7f27b3fd6f3d061216991b5816ae360a3aa342f8 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sat, 1 May 2021 09:34:38 -0400 Subject: [PATCH] Exit with CLI exit code --- bin/imbecile | 2 +- lib/imbecile.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/imbecile b/bin/imbecile index c5d6ab8..96cbee1 100755 --- a/bin/imbecile +++ b/bin/imbecile @@ -2,4 +2,4 @@ require "imbecile" -Imbecile::CLI.run(ARGV.dup) +exit Imbecile::CLI.run(ARGV.dup) diff --git a/lib/imbecile.rb b/lib/imbecile.rb index 8d13ee3..b095383 100644 --- a/lib/imbecile.rb +++ b/lib/imbecile.rb @@ -11,6 +11,7 @@ module Imbecile unless grammar.load(input_file) return 2 end + return 0 end end