Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

argi

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

argi - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

index.js

@@ -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'])

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc