Skip to content

Commit

Permalink
Simplify --runtime-version option
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Apr 30, 2024
1 parent e4d1f56 commit 251e406
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions bin/racc
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,13 @@ def main
exit
}
parser.on('--runtime-version', 'Prints runtime version and quit.') {
printf "racc runtime version %s; %s\n",
printf "racc runtime version %s; %s core version %s\n",
Racc::Parser::Racc_Runtime_Version,
Racc::Parser.racc_runtime_type,
if Racc::Parser.racc_runtime_type == 'ruby'
sprintf('ruby core version %s',
Racc::Parser::Racc_Runtime_Core_Version_R)
Racc::Parser::Racc_Runtime_Core_Version_R
else
sprintf('c core version %s',
Racc::Parser::Racc_Runtime_Core_Version_C)
Racc::Parser::Racc_Runtime_Core_Version_C
end
exit
}
Expand Down

0 comments on commit 251e406

Please sign in to comment.