Project

General

Profile

« Previous | Next » 

Revision df8f1f78

Added by nobu (Nobuyoshi Nakada) about 1 year ago

[Feature #20329] Separate additional flags from main dump options

Additional flags are comma separated list preceeded by - or +.

Before:

$ ruby --dump=insns+without_opt

After:

$ ruby --dump=insns-opt,-optimize

At the same time, parsetree_with_comment is split to parsetree
option and additional comment flag.

Before:

$ ruby --dump=parsetree_with_comment

After:

$ ruby --dump=parsetree,+comment

Also flags can be separate --dump.

$ ruby --dump=parsetree --dump=+comment --dump=+error_tolerant

Ineffective flags are ignored silently.

$ ruby --dump=parsetree --dump=+comment --dump=+error_tolerant