From f2f6059a3ea783a4638d695a121f6b3e293d734c Mon Sep 17 00:00:00 2001 From: ydah <13041216+ydah@users.noreply.github.com> Date: Sun, 15 Oct 2023 23:14:25 +0900 Subject: [PATCH] Add description of STDIN mode to help command --- lib/lrama/option_parser.rb | 3 +++ spec/lrama/option_parser_spec.rb | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lib/lrama/option_parser.rb b/lib/lrama/option_parser.rb index d8ed62ee..35725fc6 100644 --- a/lib/lrama/option_parser.rb +++ b/lib/lrama/option_parser.rb @@ -52,6 +52,9 @@ def parse_by_option_parser(argv) Usage: lrama [options] FILE BANNER o.separator '' + o.separator 'STDIN mode:' + o.separator 'lrama [options] - FILE read grammar from STDIN' + o.separator '' o.separator 'Tuning the Parser:' o.on('-S', '--skeleton=FILE', 'specify the skeleton to use') {|v| @options.skeleton = v } o.on('-t', 'reserved, do nothing') { } diff --git a/spec/lrama/option_parser_spec.rb b/spec/lrama/option_parser_spec.rb index 06432fdf..fa8fb158 100644 --- a/spec/lrama/option_parser_spec.rb +++ b/spec/lrama/option_parser_spec.rb @@ -20,6 +20,9 @@ Usage: lrama [options] FILE + STDIN mode: + lrama [options] - FILE read grammar from STDIN + Tuning the Parser: -S, --skeleton=FILE specify the skeleton to use -t reserved, do nothing