clef-parse
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -30,3 +30,3 @@ "use strict"; | ||
let item = argv.shift(); | ||
if (!item) | ||
if (item == null) | ||
break; | ||
@@ -48,3 +48,3 @@ if (item === "--") { | ||
if (!item.startsWith("--")) { | ||
throw new Error(`Invalid command-line flag: '${item}'. Single-character command-line flags should only have one dash before them, and multi-character command-line flags should have two dashes before them.`); | ||
throw new Error(`Invalid command-line flag: '${item}'. Single-character command-line flags should only have one dash before them, and multi-character command-line flags should have two dashes before them. If you want to pass '${item}' as a positional argument, place it after a '--'.`); | ||
} | ||
@@ -51,0 +51,0 @@ propertyName = changeCase.camelCase(item.replace(/^--/, "")); |
{ | ||
"name": "clef-parse", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Simple, lightweight argv parser. Powers the cleffa and clefairy packages", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
6414