yargs 18.0.0-candidate.3 → 18.0.0-candidate.4

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.
package/README.md CHANGED
@@ -78,7 +78,7 @@ $ ./plunder.js --ships 12 --distance 98.7
78
78
  Retreat from the xupptumblers!
79
79
  ```
80
80
 
81
- > Note: `hideBin` is a shorthand for [`process.argv.slice(2)`](https://nodejs.org/en/knowledge/command-line/how-to-parse-command-line-arguments/). It has the benefit that it takes into account variations in some environments, e.g., [Electron](https://github.com/electron/electron/issues/4690).
81
+ > Note: `hideBin` is a shorthand for `process.argv.slice(2)`. It has the benefit that it takes into account variations in some environments, e.g., [Electron](https://github.com/electron/electron/issues/4690).
82
82
 
83
83
  ### Complex Example
84
84
 
@@ -42,7 +42,11 @@ _{{app_name}}_yargs_completions()
42
42
  local si=$IFS
43
43
  IFS=$'\n' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "\${words[@]}"))
44
44
  IFS=$si
45
- _describe 'values' reply
45
+ if [[ \${#reply} -gt 0 ]]; then
46
+ _describe 'values' reply
47
+ else
48
+ _default
49
+ fi
46
50
  }
47
51
  compdef _{{app_name}}_yargs_completions {{app_name}}
48
52
  ###-end-{{app_name}}-completions-###
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yargs",
3
- "version": "18.0.0-candidate.3",
3
+ "version": "18.0.0-candidate.4",
4
4
  "description": "yargs the modern, pirate-themed, successor to optimist.",
5
5
  "main": "./index.mjs",
6
6
  "exports": {