You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// hello.jsconstarg=require('arg');constargs=arg({// Types'--help': Boolean,'--version': Boolean,'--verbose': arg.COUNT,// Counts the number of times --verbose is passed'--port': Number,// --port <number> or --port=<number>'--name': String,// --name <string> or --name=<string>'--tag': [String],// --tag <string> or --tag=<string>// Aliases'-v': '--verbose','-n': '--name',// -n <string>; result is stored in --name'--label': '--name'// --label <string> or --label=<string>;// result is stored in --name});console.log(args);/*{ _: ["foo", "bar", "--foobar"], '--port': 1234, '--verbose': 4, '--name': "My name", '--tag': ["qux", "qix"]}*/
I think --verbose should be true, not 4, because I got true from my practice.
Hi, I don't understand this part from Readme.md
I think
--verbose
should betrue
, not4
, because I gottrue
from my practice.So, can someone tell me why it is
4
? If it should'be fixed, I'll send a pr.The text was updated successfully, but these errors were encountered: