From: "nobu (Nobuyoshi Nakada) via ruby-core" <ruby-core@...>
Date: 2024-03-18T14:21:06+00:00
Subject: [ruby-core:117209] [Ruby master Feature#20329] Clean up `--dump` sub-options

Issue #20329 has been updated by nobu (Nobuyoshi Nakada).


eightbitraptor (Matthew Valentine-House) wrote in #note-4:
> ```
> dump=insns
> dump=insns,-opt
> dump=parsetree,+error-tolerant,+comment
> dump=yydebug,+error_tolerant
> ...etc...
> ```

This looks nice.

Would `--dump=insns --dump=-opt` have the same effect with `--dump=insns,-opt`?

----------------------------------------
Feature #20329: Clean up `--dump` sub-options
https://bugs.ruby-lang.org/issues/20329#change-107298

* Author: nobu (Nobuyoshi Nakada)
* Status: Open
----------------------------------------
Currently we have 5 options for `--dump` command line option.

* insns
* insns_without_opt
* yydebug(+error-tolerant)
* parsetree(+error-tolerant)
* parsetree_with_comment(+error-tolerant)

Among these, `insns_without_opt` is a variant of `insns`, and `parsetree_with_comment` is a variant of `parsetree`.
However, there is now another way to specify variants (e.g. `+error-tolerant`).
How about unifying the two so that the former can also be specified in the same form, such as `--dump=parsetree+comment+error-tolerant`?
It also will be able to abbreviate as `parse+comm+err` or more.



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/