yargs 18.0.0-candidate.4 → 18.0.0-candidate.5

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
@@ -38,7 +38,7 @@ Rules & Behavior
38
38
  return a Promise [boolean]
39
39
  ```
40
40
 
41
- * bash-completion shortcuts for commands and options.
41
+ * generate completion scripts for Bash and Zsh for your command
42
42
  * and [tons more](/docs/api.md).
43
43
 
44
44
  ## Installation
@@ -48,6 +48,10 @@ _{{app_name}}_yargs_completions()
48
48
  _default
49
49
  fi
50
50
  }
51
- compdef _{{app_name}}_yargs_completions {{app_name}}
51
+ if [[ "'\${zsh_eval_context[-1]}" == "loadautofunc" ]]; then
52
+ _{{app_name}}_yargs_completions "$@"
53
+ else
54
+ compdef _{{app_name}}_yargs_completions {{app_name}}
55
+ fi
52
56
  ###-end-{{app_name}}-completions-###
53
57
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yargs",
3
- "version": "18.0.0-candidate.4",
3
+ "version": "18.0.0-candidate.5",
4
4
  "description": "yargs the modern, pirate-themed, successor to optimist.",
5
5
  "main": "./index.mjs",
6
6
  "exports": {