From 48a44c3d980ae4704eef3ca34a0c979e66a86bb2 Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Wed, 22 Mar 2017 10:03:08 +0200 Subject: [PATCH] all: update --napi-modules flag to not have a yes/no This updates the documentation, the error message upon module load failure, the command line option parsing of the flag, and the way the N-API addon tests pass the flag to node. Re https://github.com/nodejs/node/pull/11975#discussion_r107257386 Re https://github.com/nodejs/node/pull/11975#discussion_r107325207 Fixes https://github.com/nodejs/abi-stable-node/issues/184 --- doc/api/cli.md | 7 +++++++ doc/node.1 | 4 ++++ src/node.cc | 9 +++------ test/addons-napi/testcfg.py | 2 +- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 5e6390335b..31087367da 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -144,6 +144,13 @@ added: v6.0.0 Silence all process warnings (including deprecations). +### `--napi-modules` + + +Load N-API modules. + ### `--trace-warnings`