Skip to content

Commit

Permalink
Omit the default exit value
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Apr 30, 2024
1 parent 198a28b commit e380a4a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/racc
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def main
#}
parser.on('--version', 'Prints version and quit.') {
puts "racc version #{Racc::Version}"
exit 0
exit
}
parser.on('--runtime-version', 'Prints runtime version and quit.') {
printf "racc runtime version %s; %s\n",
Expand All @@ -104,11 +104,11 @@ def main
sprintf('c core version %s',
Racc::Parser::Racc_Runtime_Core_Version_C)
end
exit 0
exit
}
parser.on('--copyright', 'Prints copyright and quit.') {
puts Racc::Copyright
exit 0
exit
}
parser.on('--help', 'Prints this message and quit.') {
puts parser.help
Expand Down Expand Up @@ -138,7 +138,7 @@ def main
}
if check_only
$stderr.puts 'syntax ok'
exit 0
exit
end

$stderr.puts 'Generating LALR states...' if verbose
Expand Down

0 comments on commit e380a4a

Please sign in to comment.