Skip to content

Commit

Permalink
Revert "Merge pull request ruby#504 from ydah/t-option"
Browse files Browse the repository at this point in the history
This reverts commit 45720ab, reversing
changes made to b65bc88.
  • Loading branch information
yui-knk committed Jan 12, 2025
1 parent 55f0b20 commit 787f323
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/lrama/option_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def parse_by_option_parser(argv)
o.separator ''
o.separator 'Tuning the Parser:'
o.on('-S', '--skeleton=FILE', 'specify the skeleton to use') {|v| @options.skeleton = v }
o.on('-t', '--debug', 'display debugging outputs of internal parser') {|v| @options.debug = true }
o.on('-t', 'reserved, do nothing') { }
o.on('--debug', 'display debugging outputs of internal parser') {|v| @options.debug = true }
o.separator ''
o.separator 'Output:'
o.on('-H', '--header=[FILE]', 'also produce a header file named FILE') {|v| @options.header = true; @options.header_file = v }
Expand Down
3 changes: 2 additions & 1 deletion spec/lrama/option_parser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
Tuning the Parser:
-S, --skeleton=FILE specify the skeleton to use
-t, --debug display debugging outputs of internal parser
-t reserved, do nothing
--debug display debugging outputs of internal parser
Output:
-H, --header=[FILE] also produce a header file named FILE
Expand Down

0 comments on commit 787f323

Please sign in to comment.