Comparing version 1.0.1 to 1.0.2
@@ -25,3 +25,3 @@ // Builtin | ||
aliases: toArray(opts.aliases), | ||
isBool: opts.isBool || false, | ||
boolean: opts.boolean || false, | ||
hidden: opts.hidden || false | ||
@@ -103,3 +103,3 @@ }; | ||
if (opt.isBool) mriOpts.boolean.push(opt.name); | ||
if (opt.boolean) mriOpts.boolean.push(opt.name); | ||
@@ -106,0 +106,0 @@ if (opt.aliases !== []) { |
{ | ||
"name": "argi", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A simple args parser", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -1,2 +0,2 @@ | ||
# argi [![Build Status](https://travis-ci.org/tobihrbr/argi.svg?branch=master)](https://travis-ci.org/tobihrbr/argi) [![Codestyle fyi](https://img.shields.io/badge/code%20style-fyi-E91E63.svg)](https://github.com/tobihrbr/fyi) [![Coverage Status](https://coveralls.io/repos/github/tobihrbr/argi/badge.svg?branch=master)](https://coveralls.io/github/tobihrbr/argi?branch=master) | ||
# argi [![Codestyle fyi](https://img.shields.io/badge/code%20style-fyi-E91E63.svg)](https://github.com/tobihrbr/fyi) [![Build Status](https://travis-ci.org/tobihrbr/argi.svg?branch=master)](https://travis-ci.org/tobihrbr/argi) [![Windows Build Status](https://ci.appveyor.com/api/projects/status/rvyedmu554502dlc?svg=true)](https://ci.appveyor.com/project/tobihrbr/argi) [![Coverage Status](https://coveralls.io/repos/github/tobihrbr/argi/badge.svg?branch=master)](https://coveralls.io/github/tobihrbr/argi?branch=master) | ||
@@ -17,3 +17,3 @@ > A simple args parser | ||
// Options | ||
argi.option('name', 'description', { default: 'bob', aliases: 'n', isBool: false, hidden: false }); | ||
argi.option('name', 'description', { default: 'bob', aliases: 'n', boolean: false, hidden: false }); | ||
@@ -65,3 +65,3 @@ // Commands | ||
##### isBool | ||
##### boolean | ||
@@ -71,3 +71,3 @@ Type: `boolean` | ||
Specifies whether the option is a boolean(`true`/`false`) or a string. If set to true arguments after the option will count as a command. | ||
Specifies whether the option is a boolean(`true`/`false`) or a string. If set to true arguments after the option will count as a command or as a separate option. | ||
@@ -79,3 +79,3 @@ Example: | ||
argi.option('boolean', 'description', { isBool: true }); | ||
argi.option('boolean', 'description', { boolean: true }); | ||
@@ -82,0 +82,0 @@ const parsed = argi.parse(['--boolean', 'value']) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7298