Skip to content

why does cli option --no-deprecation, --trace-deprecation take no effect in my script #16139

@LiuHD

Description

@LiuHD
  • Version: v6.11.4
  • Platform: window 64bit
  • Subsystem: cli option

There is my node code below:

var Util = require('util');
Util.print('fdfasd');

And I have excuted it in cli mode with option --no-deprecation or --trace-deprecation, but it takes no effect.

I mean that, if I excute it with --no-deprecation, it would not print any deprecation warning. If I excute it with --trace-deprecation, it would print trace about the usage of Util.print.
I have search with google for half of a day, but no results. Sorry about my poor English.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliIssues and PRs related to the Node.js command line interface.questionIssues that look for answers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions