Skip to content

Configuration parser called twice #659

@codedot

Description

@codedot
$ cat test.js
function load(path)
{
        console.warn("warning: %s not found", path);
        return {};
}

require("yargs")
        .config("config", load)
        .global("config")
        .command("command")
        .argv;
$ node test --config /tmp/missing/file command
warning: /tmp/missing/file not found
warning: /tmp/missing/file not found
$ 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions