args-tokens 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -62,7 +62,7 @@ function resolveArgs(options, tokens) {
62
62
  }
63
63
  else {
64
64
  // short option value
65
- if (currentShortOption && currentShortOption.index == token.index) {
65
+ if (currentShortOption && currentShortOption.index == token.index && token.inlineValue) {
66
66
  currentShortOption.value = token.value;
67
67
  shortOptionTokens.push({ ...currentShortOption });
68
68
  currentShortOption = undefined;
@@ -59,7 +59,7 @@ export function resolveArgs(options, tokens) {
59
59
  }
60
60
  else {
61
61
  // short option value
62
- if (currentShortOption && currentShortOption.index == token.index) {
62
+ if (currentShortOption && currentShortOption.index == token.index && token.inlineValue) {
63
63
  currentShortOption.value = token.value;
64
64
  shortOptionTokens.push({ ...currentShortOption });
65
65
  currentShortOption = undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "args-tokens",
3
3
  "description": "parseArgs tokens compatibility and more high-performance parser",
4
- "version": "0.3.0",
4
+ "version": "0.3.1",
5
5
  "author": {
6
6
  "name": "kazuya kawaguchi",
7
7
  "email": "kawakazu80@gmail.com"