decidim 0.27.3 → 0.27.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of decidim might be problematic. Click here for more details.

Files changed (223) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +16 -2
  3. data/babel.config.json +1 -4
  4. data/lib/decidim/release_manager.rb.new +43 -0
  5. data/lib/decidim/version.rb +1 -1
  6. data/package-lock.json +343 -255
  7. data/packages/browserslist-config/package.json +1 -1
  8. data/packages/core/node_modules/diff/CONTRIBUTING.md +39 -0
  9. data/packages/core/node_modules/diff/LICENSE +31 -0
  10. data/packages/core/node_modules/diff/README.md +211 -0
  11. data/packages/core/node_modules/diff/dist/diff.js +1627 -0
  12. data/packages/core/node_modules/diff/dist/diff.min.js +38 -0
  13. data/packages/core/node_modules/diff/lib/convert/dmp.js +32 -0
  14. data/packages/core/node_modules/diff/lib/convert/xml.js +42 -0
  15. data/packages/core/node_modules/diff/lib/diff/array.js +45 -0
  16. data/packages/core/node_modules/diff/lib/diff/base.js +307 -0
  17. data/packages/core/node_modules/diff/lib/diff/character.js +37 -0
  18. data/packages/core/node_modules/diff/lib/diff/css.js +41 -0
  19. data/packages/core/node_modules/diff/lib/diff/json.js +163 -0
  20. data/packages/core/node_modules/diff/lib/diff/line.js +89 -0
  21. data/packages/core/node_modules/diff/lib/diff/sentence.js +41 -0
  22. data/packages/core/node_modules/diff/lib/diff/word.js +108 -0
  23. data/packages/core/node_modules/diff/lib/index.es6.js +1561 -0
  24. data/packages/core/node_modules/diff/lib/index.js +216 -0
  25. data/packages/core/node_modules/diff/lib/index.mjs +1561 -0
  26. data/packages/core/node_modules/diff/lib/patch/apply.js +238 -0
  27. data/packages/core/node_modules/diff/lib/patch/create.js +272 -0
  28. data/packages/core/node_modules/diff/lib/patch/merge.js +613 -0
  29. data/packages/core/node_modules/diff/lib/patch/parse.js +167 -0
  30. data/packages/core/node_modules/diff/lib/util/array.js +32 -0
  31. data/packages/core/node_modules/diff/lib/util/distance-iterator.js +57 -0
  32. data/packages/core/node_modules/diff/lib/util/params.js +24 -0
  33. data/packages/core/node_modules/diff/package.json +87 -0
  34. data/packages/core/node_modules/diff/release-notes.md +309 -0
  35. data/packages/core/node_modules/diff/runtime.js +3 -0
  36. data/packages/core/package-lock.json +4889 -0
  37. data/packages/core/package.json +1 -1
  38. data/packages/dev/package.json +1 -1
  39. data/packages/elections/package.json +1 -1
  40. data/packages/eslint-config/package.json +1 -1
  41. data/packages/stylelint-config/package.json +1 -1
  42. data/packages/webpacker/node_modules/argparse/CHANGELOG.md +216 -0
  43. data/packages/webpacker/node_modules/argparse/LICENSE +254 -0
  44. data/packages/webpacker/node_modules/argparse/README.md +84 -0
  45. data/packages/webpacker/node_modules/argparse/argparse.js +3707 -0
  46. data/packages/webpacker/node_modules/argparse/lib/sub.js +67 -0
  47. data/packages/webpacker/node_modules/argparse/lib/textwrap.js +440 -0
  48. data/packages/webpacker/node_modules/argparse/package.json +31 -0
  49. data/packages/{core/node_modules/uuid/LICENSE.md → webpacker/node_modules/brace-expansion/LICENSE} +2 -2
  50. data/packages/webpacker/node_modules/brace-expansion/README.md +135 -0
  51. data/packages/webpacker/node_modules/brace-expansion/index.js +203 -0
  52. data/packages/webpacker/node_modules/brace-expansion/package.json +46 -0
  53. data/packages/webpacker/node_modules/glob/LICENSE +15 -0
  54. data/packages/webpacker/node_modules/glob/README.md +1214 -0
  55. data/packages/webpacker/node_modules/glob/dist/cjs/package.json +4 -0
  56. data/packages/webpacker/node_modules/glob/dist/cjs/src/bin.d.ts +3 -0
  57. data/packages/webpacker/node_modules/glob/dist/cjs/src/bin.d.ts.map +1 -0
  58. data/packages/webpacker/node_modules/glob/dist/cjs/src/bin.js +270 -0
  59. data/packages/webpacker/node_modules/glob/dist/cjs/src/bin.js.map +1 -0
  60. data/packages/webpacker/node_modules/glob/dist/cjs/src/glob.d.ts +344 -0
  61. data/packages/webpacker/node_modules/glob/dist/cjs/src/glob.d.ts.map +1 -0
  62. data/packages/webpacker/node_modules/glob/dist/cjs/src/glob.js +238 -0
  63. data/packages/webpacker/node_modules/glob/dist/cjs/src/glob.js.map +1 -0
  64. data/packages/webpacker/node_modules/glob/dist/cjs/src/has-magic.d.ts +14 -0
  65. data/packages/webpacker/node_modules/glob/dist/cjs/src/has-magic.d.ts.map +1 -0
  66. data/packages/webpacker/node_modules/glob/dist/cjs/src/has-magic.js +27 -0
  67. data/packages/webpacker/node_modules/glob/dist/cjs/src/has-magic.js.map +1 -0
  68. data/packages/webpacker/node_modules/glob/dist/cjs/src/ignore.d.ts +20 -0
  69. data/packages/webpacker/node_modules/glob/dist/cjs/src/ignore.d.ts.map +1 -0
  70. data/packages/webpacker/node_modules/glob/dist/cjs/src/ignore.js +103 -0
  71. data/packages/webpacker/node_modules/glob/dist/cjs/src/ignore.js.map +1 -0
  72. data/packages/webpacker/node_modules/glob/dist/cjs/src/index.d.ts +95 -0
  73. data/packages/webpacker/node_modules/glob/dist/cjs/src/index.d.ts.map +1 -0
  74. data/packages/webpacker/node_modules/glob/dist/cjs/src/index.js +68 -0
  75. data/packages/webpacker/node_modules/glob/dist/cjs/src/index.js.map +1 -0
  76. data/packages/webpacker/node_modules/glob/dist/cjs/src/pattern.d.ts +77 -0
  77. data/packages/webpacker/node_modules/glob/dist/cjs/src/pattern.d.ts.map +1 -0
  78. data/packages/webpacker/node_modules/glob/dist/cjs/src/pattern.js +219 -0
  79. data/packages/webpacker/node_modules/glob/dist/cjs/src/pattern.js.map +1 -0
  80. data/packages/webpacker/node_modules/glob/dist/cjs/src/processor.d.ts +59 -0
  81. data/packages/webpacker/node_modules/glob/dist/cjs/src/processor.d.ts.map +1 -0
  82. data/packages/webpacker/node_modules/glob/dist/cjs/src/processor.js +309 -0
  83. data/packages/webpacker/node_modules/glob/dist/cjs/src/processor.js.map +1 -0
  84. data/packages/webpacker/node_modules/glob/dist/cjs/src/walker.d.ts +96 -0
  85. data/packages/webpacker/node_modules/glob/dist/cjs/src/walker.d.ts.map +1 -0
  86. data/packages/webpacker/node_modules/glob/dist/cjs/src/walker.js +358 -0
  87. data/packages/webpacker/node_modules/glob/dist/cjs/src/walker.js.map +1 -0
  88. data/packages/webpacker/node_modules/glob/dist/mjs/glob.d.ts +344 -0
  89. data/packages/webpacker/node_modules/glob/dist/mjs/glob.d.ts.map +1 -0
  90. data/packages/webpacker/node_modules/glob/dist/mjs/glob.js +234 -0
  91. data/packages/webpacker/node_modules/glob/dist/mjs/glob.js.map +1 -0
  92. data/packages/webpacker/node_modules/glob/dist/mjs/has-magic.d.ts +14 -0
  93. data/packages/webpacker/node_modules/glob/dist/mjs/has-magic.d.ts.map +1 -0
  94. data/packages/webpacker/node_modules/glob/dist/mjs/has-magic.js +23 -0
  95. data/packages/webpacker/node_modules/glob/dist/mjs/has-magic.js.map +1 -0
  96. data/packages/webpacker/node_modules/glob/dist/mjs/ignore.d.ts +20 -0
  97. data/packages/webpacker/node_modules/glob/dist/mjs/ignore.d.ts.map +1 -0
  98. data/packages/webpacker/node_modules/glob/dist/mjs/ignore.js +99 -0
  99. data/packages/webpacker/node_modules/glob/dist/mjs/ignore.js.map +1 -0
  100. data/packages/webpacker/node_modules/glob/dist/mjs/index.d.ts +95 -0
  101. data/packages/webpacker/node_modules/glob/dist/mjs/index.d.ts.map +1 -0
  102. data/packages/webpacker/node_modules/glob/dist/mjs/index.js +56 -0
  103. data/packages/webpacker/node_modules/glob/dist/mjs/index.js.map +1 -0
  104. data/packages/webpacker/node_modules/glob/dist/mjs/package.json +4 -0
  105. data/packages/webpacker/node_modules/glob/dist/mjs/pattern.d.ts +77 -0
  106. data/packages/webpacker/node_modules/glob/dist/mjs/pattern.d.ts.map +1 -0
  107. data/packages/webpacker/node_modules/glob/dist/mjs/pattern.js +215 -0
  108. data/packages/webpacker/node_modules/glob/dist/mjs/pattern.js.map +1 -0
  109. data/packages/webpacker/node_modules/glob/dist/mjs/processor.d.ts +59 -0
  110. data/packages/webpacker/node_modules/glob/dist/mjs/processor.d.ts.map +1 -0
  111. data/packages/webpacker/node_modules/glob/dist/mjs/processor.js +302 -0
  112. data/packages/webpacker/node_modules/glob/dist/mjs/processor.js.map +1 -0
  113. data/packages/webpacker/node_modules/glob/dist/mjs/walker.d.ts +96 -0
  114. data/packages/webpacker/node_modules/glob/dist/mjs/walker.d.ts.map +1 -0
  115. data/packages/webpacker/node_modules/glob/dist/mjs/walker.js +352 -0
  116. data/packages/webpacker/node_modules/glob/dist/mjs/walker.js.map +1 -0
  117. data/packages/webpacker/node_modules/glob/package.json +98 -0
  118. data/packages/webpacker/node_modules/js-yaml/CHANGELOG.md +616 -0
  119. data/packages/webpacker/node_modules/js-yaml/LICENSE +21 -0
  120. data/packages/webpacker/node_modules/js-yaml/README.md +246 -0
  121. data/packages/webpacker/node_modules/js-yaml/bin/js-yaml.js +126 -0
  122. data/packages/webpacker/node_modules/js-yaml/dist/js-yaml.js +3874 -0
  123. data/packages/webpacker/node_modules/js-yaml/dist/js-yaml.min.js +2 -0
  124. data/packages/webpacker/node_modules/js-yaml/dist/js-yaml.mjs +3851 -0
  125. data/packages/webpacker/node_modules/js-yaml/index.js +47 -0
  126. data/packages/webpacker/node_modules/js-yaml/lib/common.js +59 -0
  127. data/packages/webpacker/node_modules/js-yaml/lib/dumper.js +965 -0
  128. data/packages/webpacker/node_modules/js-yaml/lib/exception.js +55 -0
  129. data/packages/webpacker/node_modules/js-yaml/lib/loader.js +1727 -0
  130. data/packages/webpacker/node_modules/js-yaml/lib/schema/core.js +11 -0
  131. data/packages/webpacker/node_modules/js-yaml/lib/schema/default.js +22 -0
  132. data/packages/webpacker/node_modules/js-yaml/lib/schema/failsafe.js +17 -0
  133. data/packages/webpacker/node_modules/js-yaml/lib/schema/json.js +19 -0
  134. data/packages/webpacker/node_modules/js-yaml/lib/schema.js +121 -0
  135. data/packages/webpacker/node_modules/js-yaml/lib/snippet.js +101 -0
  136. data/packages/webpacker/node_modules/js-yaml/lib/type/binary.js +125 -0
  137. data/packages/webpacker/node_modules/js-yaml/lib/type/bool.js +35 -0
  138. data/packages/webpacker/node_modules/js-yaml/lib/type/float.js +97 -0
  139. data/packages/webpacker/node_modules/js-yaml/lib/type/int.js +156 -0
  140. data/packages/webpacker/node_modules/js-yaml/lib/type/map.js +8 -0
  141. data/packages/webpacker/node_modules/js-yaml/lib/type/merge.js +12 -0
  142. data/packages/webpacker/node_modules/js-yaml/lib/type/null.js +35 -0
  143. data/packages/webpacker/node_modules/js-yaml/lib/type/omap.js +44 -0
  144. data/packages/webpacker/node_modules/js-yaml/lib/type/pairs.js +53 -0
  145. data/packages/webpacker/node_modules/js-yaml/lib/type/seq.js +8 -0
  146. data/packages/webpacker/node_modules/js-yaml/lib/type/set.js +29 -0
  147. data/packages/webpacker/node_modules/js-yaml/lib/type/str.js +8 -0
  148. data/packages/webpacker/node_modules/js-yaml/lib/type/timestamp.js +88 -0
  149. data/packages/webpacker/node_modules/js-yaml/lib/type.js +66 -0
  150. data/packages/webpacker/node_modules/js-yaml/package.json +66 -0
  151. data/packages/webpacker/node_modules/minimatch/LICENSE +15 -0
  152. data/packages/webpacker/node_modules/minimatch/README.md +454 -0
  153. data/packages/webpacker/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts +2 -0
  154. data/packages/webpacker/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts.map +1 -0
  155. data/packages/webpacker/node_modules/minimatch/dist/cjs/assert-valid-pattern.js +14 -0
  156. data/packages/webpacker/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map +1 -0
  157. data/packages/webpacker/node_modules/minimatch/dist/cjs/ast.d.ts +19 -0
  158. data/packages/webpacker/node_modules/minimatch/dist/cjs/ast.d.ts.map +1 -0
  159. data/packages/webpacker/node_modules/minimatch/dist/cjs/ast.js +589 -0
  160. data/packages/webpacker/node_modules/minimatch/dist/cjs/ast.js.map +1 -0
  161. data/packages/webpacker/node_modules/minimatch/dist/cjs/brace-expressions.d.ts +8 -0
  162. data/packages/webpacker/node_modules/minimatch/dist/cjs/brace-expressions.d.ts.map +1 -0
  163. data/packages/webpacker/node_modules/minimatch/dist/cjs/brace-expressions.js +152 -0
  164. data/packages/webpacker/node_modules/minimatch/dist/cjs/brace-expressions.js.map +1 -0
  165. data/packages/webpacker/node_modules/minimatch/dist/cjs/escape.d.ts +12 -0
  166. data/packages/webpacker/node_modules/minimatch/dist/cjs/escape.d.ts.map +1 -0
  167. data/packages/webpacker/node_modules/minimatch/dist/cjs/escape.js +22 -0
  168. data/packages/webpacker/node_modules/minimatch/dist/cjs/escape.js.map +1 -0
  169. data/packages/webpacker/node_modules/minimatch/dist/cjs/index.d.ts +94 -0
  170. data/packages/webpacker/node_modules/minimatch/dist/cjs/index.d.ts.map +1 -0
  171. data/packages/webpacker/node_modules/minimatch/dist/cjs/index.js +1011 -0
  172. data/packages/webpacker/node_modules/minimatch/dist/cjs/index.js.map +1 -0
  173. data/packages/webpacker/node_modules/minimatch/dist/cjs/package.json +3 -0
  174. data/packages/webpacker/node_modules/minimatch/dist/cjs/unescape.d.ts +17 -0
  175. data/packages/webpacker/node_modules/minimatch/dist/cjs/unescape.d.ts.map +1 -0
  176. data/packages/webpacker/node_modules/minimatch/dist/cjs/unescape.js +24 -0
  177. data/packages/webpacker/node_modules/minimatch/dist/cjs/unescape.js.map +1 -0
  178. data/packages/webpacker/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts +2 -0
  179. data/packages/webpacker/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts.map +1 -0
  180. data/packages/webpacker/node_modules/minimatch/dist/mjs/assert-valid-pattern.js +10 -0
  181. data/packages/webpacker/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map +1 -0
  182. data/packages/webpacker/node_modules/minimatch/dist/mjs/ast.d.ts +19 -0
  183. data/packages/webpacker/node_modules/minimatch/dist/mjs/ast.d.ts.map +1 -0
  184. data/packages/webpacker/node_modules/minimatch/dist/mjs/ast.js +585 -0
  185. data/packages/webpacker/node_modules/minimatch/dist/mjs/ast.js.map +1 -0
  186. data/packages/webpacker/node_modules/minimatch/dist/mjs/brace-expressions.d.ts +8 -0
  187. data/packages/webpacker/node_modules/minimatch/dist/mjs/brace-expressions.d.ts.map +1 -0
  188. data/packages/webpacker/node_modules/minimatch/dist/mjs/brace-expressions.js +148 -0
  189. data/packages/webpacker/node_modules/minimatch/dist/mjs/brace-expressions.js.map +1 -0
  190. data/packages/webpacker/node_modules/minimatch/dist/mjs/escape.d.ts +12 -0
  191. data/packages/webpacker/node_modules/minimatch/dist/mjs/escape.d.ts.map +1 -0
  192. data/packages/webpacker/node_modules/minimatch/dist/mjs/escape.js +18 -0
  193. data/packages/webpacker/node_modules/minimatch/dist/mjs/escape.js.map +1 -0
  194. data/packages/webpacker/node_modules/minimatch/dist/mjs/index.d.ts +94 -0
  195. data/packages/webpacker/node_modules/minimatch/dist/mjs/index.d.ts.map +1 -0
  196. data/packages/webpacker/node_modules/minimatch/dist/mjs/index.js +995 -0
  197. data/packages/webpacker/node_modules/minimatch/dist/mjs/index.js.map +1 -0
  198. data/packages/webpacker/node_modules/minimatch/dist/mjs/package.json +3 -0
  199. data/packages/webpacker/node_modules/minimatch/dist/mjs/unescape.d.ts +17 -0
  200. data/packages/webpacker/node_modules/minimatch/dist/mjs/unescape.d.ts.map +1 -0
  201. data/packages/webpacker/node_modules/minimatch/dist/mjs/unescape.js +20 -0
  202. data/packages/webpacker/node_modules/minimatch/dist/mjs/unescape.js.map +1 -0
  203. data/packages/webpacker/node_modules/minimatch/package.json +86 -0
  204. data/packages/webpacker/package.json +2 -2
  205. metadata +237 -64
  206. data/packages/core/node_modules/uuid/AUTHORS +0 -5
  207. data/packages/core/node_modules/uuid/CHANGELOG.md +0 -119
  208. data/packages/core/node_modules/uuid/README.md +0 -276
  209. data/packages/core/node_modules/uuid/bin/uuid +0 -65
  210. data/packages/core/node_modules/uuid/index.js +0 -8
  211. data/packages/core/node_modules/uuid/lib/bytesToUuid.js +0 -26
  212. data/packages/core/node_modules/uuid/lib/md5-browser.js +0 -216
  213. data/packages/core/node_modules/uuid/lib/md5.js +0 -25
  214. data/packages/core/node_modules/uuid/lib/rng-browser.js +0 -34
  215. data/packages/core/node_modules/uuid/lib/rng.js +0 -8
  216. data/packages/core/node_modules/uuid/lib/sha1-browser.js +0 -89
  217. data/packages/core/node_modules/uuid/lib/sha1.js +0 -25
  218. data/packages/core/node_modules/uuid/lib/v35.js +0 -57
  219. data/packages/core/node_modules/uuid/package.json +0 -49
  220. data/packages/core/node_modules/uuid/v1.js +0 -109
  221. data/packages/core/node_modules/uuid/v3.js +0 -4
  222. data/packages/core/node_modules/uuid/v4.js +0 -29
  223. data/packages/core/node_modules/uuid/v5.js +0 -3
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@decidim/core",
3
3
  "description": "The core dependencies for Decidim",
4
- "version": "0.27.3",
4
+ "version": "0.27.4",
5
5
  "repository": {
6
6
  "url": "git@github.com:decidim/decidim.git",
7
7
  "type": "git",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@decidim/dev",
3
3
  "description": "The dev dependencies for Decidim",
4
- "version": "0.27.3",
4
+ "version": "0.27.4",
5
5
  "repository": {
6
6
  "url": "git@github.com:decidim/decidim.git",
7
7
  "type": "git",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@decidim/elections",
3
3
  "description": "The elections and votings dependencies for Decidim",
4
- "version": "0.27.3",
4
+ "version": "0.27.4",
5
5
  "repository": {
6
6
  "url": "git@github.com:decidim/decidim.git",
7
7
  "type": "git",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@decidim/eslint-config",
3
3
  "description": "The eslint configuration for Decidim",
4
- "version": "0.27.3",
4
+ "version": "0.27.4",
5
5
  "repository": {
6
6
  "url": "git@github.com:decidim/decidim.git",
7
7
  "type": "git",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@decidim/stylelint-config",
3
3
  "description": "The stylelint configuration for Decidim",
4
- "version": "0.27.3",
4
+ "version": "0.27.4",
5
5
  "repository": {
6
6
  "url": "git@github.com:decidim/decidim.git",
7
7
  "type": "git",
@@ -0,0 +1,216 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+
9
+ ## [2.0.1] - 2020-08-29
10
+ ### Fixed
11
+ - Fix issue with `process.argv` when used with interpreters (`coffee`, `ts-node`, etc.), #150.
12
+
13
+
14
+ ## [2.0.0] - 2020-08-14
15
+ ### Changed
16
+ - Full rewrite. Now port from python 3.9.0 & more precise following.
17
+ See [doc](./doc) for difference and migration info.
18
+ - node.js 10+ required
19
+ - Removed most of local docs in favour of original ones.
20
+
21
+
22
+ ## [1.0.10] - 2018-02-15
23
+ ### Fixed
24
+ - Use .concat instead of + for arrays, #122.
25
+
26
+
27
+ ## [1.0.9] - 2016-09-29
28
+ ### Changed
29
+ - Rerelease after 1.0.8 - deps cleanup.
30
+
31
+
32
+ ## [1.0.8] - 2016-09-29
33
+ ### Changed
34
+ - Maintenance (deps bump, fix node 6.5+ tests, coverage report).
35
+
36
+
37
+ ## [1.0.7] - 2016-03-17
38
+ ### Changed
39
+ - Teach `addArgument` to accept string arg names. #97, @tomxtobin.
40
+
41
+
42
+ ## [1.0.6] - 2016-02-06
43
+ ### Changed
44
+ - Maintenance: moved to eslint & updated CS.
45
+
46
+
47
+ ## [1.0.5] - 2016-02-05
48
+ ### Changed
49
+ - Removed lodash dependency to significantly reduce install size.
50
+ Thanks to @mourner.
51
+
52
+
53
+ ## [1.0.4] - 2016-01-17
54
+ ### Changed
55
+ - Maintenance: lodash update to 4.0.0.
56
+
57
+
58
+ ## [1.0.3] - 2015-10-27
59
+ ### Fixed
60
+ - Fix parse `=` in args: `--examplepath="C:\myfolder\env=x64"`. #84, @CatWithApple.
61
+
62
+
63
+ ## [1.0.2] - 2015-03-22
64
+ ### Changed
65
+ - Relaxed lodash version dependency.
66
+
67
+
68
+ ## [1.0.1] - 2015-02-20
69
+ ### Changed
70
+ - Changed dependencies to be compatible with ancient nodejs.
71
+
72
+
73
+ ## [1.0.0] - 2015-02-19
74
+ ### Changed
75
+ - Maintenance release.
76
+ - Replaced `underscore` with `lodash`.
77
+ - Bumped version to 1.0.0 to better reflect semver meaning.
78
+ - HISTORY.md -> CHANGELOG.md
79
+
80
+
81
+ ## [0.1.16] - 2013-12-01
82
+ ### Changed
83
+ - Maintenance release. Updated dependencies and docs.
84
+
85
+
86
+ ## [0.1.15] - 2013-05-13
87
+ ### Fixed
88
+ - Fixed #55, @trebor89
89
+
90
+
91
+ ## [0.1.14] - 2013-05-12
92
+ ### Fixed
93
+ - Fixed #62, @maxtaco
94
+
95
+
96
+ ## [0.1.13] - 2013-04-08
97
+ ### Changed
98
+ - Added `.npmignore` to reduce package size
99
+
100
+
101
+ ## [0.1.12] - 2013-02-10
102
+ ### Fixed
103
+ - Fixed conflictHandler (#46), @hpaulj
104
+
105
+
106
+ ## [0.1.11] - 2013-02-07
107
+ ### Added
108
+ - Added 70+ tests (ported from python), @hpaulj
109
+ - Added conflictHandler, @applepicke
110
+ - Added fromfilePrefixChar, @hpaulj
111
+
112
+ ### Fixed
113
+ - Multiple bugfixes, @hpaulj
114
+
115
+
116
+ ## [0.1.10] - 2012-12-30
117
+ ### Added
118
+ - Added [mutual exclusion](http://docs.python.org/dev/library/argparse.html#mutual-exclusion)
119
+ support, thanks to @hpaulj
120
+
121
+ ### Fixed
122
+ - Fixed options check for `storeConst` & `appendConst` actions, thanks to @hpaulj
123
+
124
+
125
+ ## [0.1.9] - 2012-12-27
126
+ ### Fixed
127
+ - Fixed option dest interferens with other options (issue #23), thanks to @hpaulj
128
+ - Fixed default value behavior with `*` positionals, thanks to @hpaulj
129
+ - Improve `getDefault()` behavior, thanks to @hpaulj
130
+ - Improve negative argument parsing, thanks to @hpaulj
131
+
132
+
133
+ ## [0.1.8] - 2012-12-01
134
+ ### Fixed
135
+ - Fixed parser parents (issue #19), thanks to @hpaulj
136
+ - Fixed negative argument parse (issue #20), thanks to @hpaulj
137
+
138
+
139
+ ## [0.1.7] - 2012-10-14
140
+ ### Fixed
141
+ - Fixed 'choices' argument parse (issue #16)
142
+ - Fixed stderr output (issue #15)
143
+
144
+
145
+ ## [0.1.6] - 2012-09-09
146
+ ### Fixed
147
+ - Fixed check for conflict of options (thanks to @tomxtobin)
148
+
149
+
150
+ ## [0.1.5] - 2012-09-03
151
+ ### Fixed
152
+ - Fix parser #setDefaults method (thanks to @tomxtobin)
153
+
154
+
155
+ ## [0.1.4] - 2012-07-30
156
+ ### Fixed
157
+ - Fixed pseudo-argument support (thanks to @CGamesPlay)
158
+ - Fixed addHelp default (should be true), if not set (thanks to @benblank)
159
+
160
+
161
+ ## [0.1.3] - 2012-06-27
162
+ ### Fixed
163
+ - Fixed formatter api name: Formatter -> HelpFormatter
164
+
165
+
166
+ ## [0.1.2] - 2012-05-29
167
+ ### Fixed
168
+ - Removed excess whitespace in help
169
+ - Fixed error reporting, when parcer with subcommands
170
+ called with empty arguments
171
+
172
+ ### Added
173
+ - Added basic tests
174
+
175
+
176
+ ## [0.1.1] - 2012-05-23
177
+ ### Fixed
178
+ - Fixed line wrapping in help formatter
179
+ - Added better error reporting on invalid arguments
180
+
181
+
182
+ ## [0.1.0] - 2012-05-16
183
+ ### Added
184
+ - First release.
185
+
186
+
187
+ [2.0.1]: https://github.com/nodeca/argparse/compare/2.0.0...2.0.1
188
+ [2.0.0]: https://github.com/nodeca/argparse/compare/1.0.10...2.0.0
189
+ [1.0.10]: https://github.com/nodeca/argparse/compare/1.0.9...1.0.10
190
+ [1.0.9]: https://github.com/nodeca/argparse/compare/1.0.8...1.0.9
191
+ [1.0.8]: https://github.com/nodeca/argparse/compare/1.0.7...1.0.8
192
+ [1.0.7]: https://github.com/nodeca/argparse/compare/1.0.6...1.0.7
193
+ [1.0.6]: https://github.com/nodeca/argparse/compare/1.0.5...1.0.6
194
+ [1.0.5]: https://github.com/nodeca/argparse/compare/1.0.4...1.0.5
195
+ [1.0.4]: https://github.com/nodeca/argparse/compare/1.0.3...1.0.4
196
+ [1.0.3]: https://github.com/nodeca/argparse/compare/1.0.2...1.0.3
197
+ [1.0.2]: https://github.com/nodeca/argparse/compare/1.0.1...1.0.2
198
+ [1.0.1]: https://github.com/nodeca/argparse/compare/1.0.0...1.0.1
199
+ [1.0.0]: https://github.com/nodeca/argparse/compare/0.1.16...1.0.0
200
+ [0.1.16]: https://github.com/nodeca/argparse/compare/0.1.15...0.1.16
201
+ [0.1.15]: https://github.com/nodeca/argparse/compare/0.1.14...0.1.15
202
+ [0.1.14]: https://github.com/nodeca/argparse/compare/0.1.13...0.1.14
203
+ [0.1.13]: https://github.com/nodeca/argparse/compare/0.1.12...0.1.13
204
+ [0.1.12]: https://github.com/nodeca/argparse/compare/0.1.11...0.1.12
205
+ [0.1.11]: https://github.com/nodeca/argparse/compare/0.1.10...0.1.11
206
+ [0.1.10]: https://github.com/nodeca/argparse/compare/0.1.9...0.1.10
207
+ [0.1.9]: https://github.com/nodeca/argparse/compare/0.1.8...0.1.9
208
+ [0.1.8]: https://github.com/nodeca/argparse/compare/0.1.7...0.1.8
209
+ [0.1.7]: https://github.com/nodeca/argparse/compare/0.1.6...0.1.7
210
+ [0.1.6]: https://github.com/nodeca/argparse/compare/0.1.5...0.1.6
211
+ [0.1.5]: https://github.com/nodeca/argparse/compare/0.1.4...0.1.5
212
+ [0.1.4]: https://github.com/nodeca/argparse/compare/0.1.3...0.1.4
213
+ [0.1.3]: https://github.com/nodeca/argparse/compare/0.1.2...0.1.3
214
+ [0.1.2]: https://github.com/nodeca/argparse/compare/0.1.1...0.1.2
215
+ [0.1.1]: https://github.com/nodeca/argparse/compare/0.1.0...0.1.1
216
+ [0.1.0]: https://github.com/nodeca/argparse/releases/tag/0.1.0
@@ -0,0 +1,254 @@
1
+ A. HISTORY OF THE SOFTWARE
2
+ ==========================
3
+
4
+ Python was created in the early 1990s by Guido van Rossum at Stichting
5
+ Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands
6
+ as a successor of a language called ABC. Guido remains Python's
7
+ principal author, although it includes many contributions from others.
8
+
9
+ In 1995, Guido continued his work on Python at the Corporation for
10
+ National Research Initiatives (CNRI, see http://www.cnri.reston.va.us)
11
+ in Reston, Virginia where he released several versions of the
12
+ software.
13
+
14
+ In May 2000, Guido and the Python core development team moved to
15
+ BeOpen.com to form the BeOpen PythonLabs team. In October of the same
16
+ year, the PythonLabs team moved to Digital Creations, which became
17
+ Zope Corporation. In 2001, the Python Software Foundation (PSF, see
18
+ https://www.python.org/psf/) was formed, a non-profit organization
19
+ created specifically to own Python-related Intellectual Property.
20
+ Zope Corporation was a sponsoring member of the PSF.
21
+
22
+ All Python releases are Open Source (see http://www.opensource.org for
23
+ the Open Source Definition). Historically, most, but not all, Python
24
+ releases have also been GPL-compatible; the table below summarizes
25
+ the various releases.
26
+
27
+ Release Derived Year Owner GPL-
28
+ from compatible? (1)
29
+
30
+ 0.9.0 thru 1.2 1991-1995 CWI yes
31
+ 1.3 thru 1.5.2 1.2 1995-1999 CNRI yes
32
+ 1.6 1.5.2 2000 CNRI no
33
+ 2.0 1.6 2000 BeOpen.com no
34
+ 1.6.1 1.6 2001 CNRI yes (2)
35
+ 2.1 2.0+1.6.1 2001 PSF no
36
+ 2.0.1 2.0+1.6.1 2001 PSF yes
37
+ 2.1.1 2.1+2.0.1 2001 PSF yes
38
+ 2.1.2 2.1.1 2002 PSF yes
39
+ 2.1.3 2.1.2 2002 PSF yes
40
+ 2.2 and above 2.1.1 2001-now PSF yes
41
+
42
+ Footnotes:
43
+
44
+ (1) GPL-compatible doesn't mean that we're distributing Python under
45
+ the GPL. All Python licenses, unlike the GPL, let you distribute
46
+ a modified version without making your changes open source. The
47
+ GPL-compatible licenses make it possible to combine Python with
48
+ other software that is released under the GPL; the others don't.
49
+
50
+ (2) According to Richard Stallman, 1.6.1 is not GPL-compatible,
51
+ because its license has a choice of law clause. According to
52
+ CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1
53
+ is "not incompatible" with the GPL.
54
+
55
+ Thanks to the many outside volunteers who have worked under Guido's
56
+ direction to make these releases possible.
57
+
58
+
59
+ B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON
60
+ ===============================================================
61
+
62
+ PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
63
+ --------------------------------------------
64
+
65
+ 1. This LICENSE AGREEMENT is between the Python Software Foundation
66
+ ("PSF"), and the Individual or Organization ("Licensee") accessing and
67
+ otherwise using this software ("Python") in source or binary form and
68
+ its associated documentation.
69
+
70
+ 2. Subject to the terms and conditions of this License Agreement, PSF hereby
71
+ grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
72
+ analyze, test, perform and/or display publicly, prepare derivative works,
73
+ distribute, and otherwise use Python alone or in any derivative version,
74
+ provided, however, that PSF's License Agreement and PSF's notice of copyright,
75
+ i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
76
+ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Python Software Foundation;
77
+ All Rights Reserved" are retained in Python alone or in any derivative version
78
+ prepared by Licensee.
79
+
80
+ 3. In the event Licensee prepares a derivative work that is based on
81
+ or incorporates Python or any part thereof, and wants to make
82
+ the derivative work available to others as provided herein, then
83
+ Licensee hereby agrees to include in any such work a brief summary of
84
+ the changes made to Python.
85
+
86
+ 4. PSF is making Python available to Licensee on an "AS IS"
87
+ basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
88
+ IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
89
+ DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
90
+ FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
91
+ INFRINGE ANY THIRD PARTY RIGHTS.
92
+
93
+ 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
94
+ FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
95
+ A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
96
+ OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
97
+
98
+ 6. This License Agreement will automatically terminate upon a material
99
+ breach of its terms and conditions.
100
+
101
+ 7. Nothing in this License Agreement shall be deemed to create any
102
+ relationship of agency, partnership, or joint venture between PSF and
103
+ Licensee. This License Agreement does not grant permission to use PSF
104
+ trademarks or trade name in a trademark sense to endorse or promote
105
+ products or services of Licensee, or any third party.
106
+
107
+ 8. By copying, installing or otherwise using Python, Licensee
108
+ agrees to be bound by the terms and conditions of this License
109
+ Agreement.
110
+
111
+
112
+ BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0
113
+ -------------------------------------------
114
+
115
+ BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1
116
+
117
+ 1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an
118
+ office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the
119
+ Individual or Organization ("Licensee") accessing and otherwise using
120
+ this software in source or binary form and its associated
121
+ documentation ("the Software").
122
+
123
+ 2. Subject to the terms and conditions of this BeOpen Python License
124
+ Agreement, BeOpen hereby grants Licensee a non-exclusive,
125
+ royalty-free, world-wide license to reproduce, analyze, test, perform
126
+ and/or display publicly, prepare derivative works, distribute, and
127
+ otherwise use the Software alone or in any derivative version,
128
+ provided, however, that the BeOpen Python License is retained in the
129
+ Software, alone or in any derivative version prepared by Licensee.
130
+
131
+ 3. BeOpen is making the Software available to Licensee on an "AS IS"
132
+ basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
133
+ IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND
134
+ DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
135
+ FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT
136
+ INFRINGE ANY THIRD PARTY RIGHTS.
137
+
138
+ 4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE
139
+ SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS
140
+ AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY
141
+ DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
142
+
143
+ 5. This License Agreement will automatically terminate upon a material
144
+ breach of its terms and conditions.
145
+
146
+ 6. This License Agreement shall be governed by and interpreted in all
147
+ respects by the law of the State of California, excluding conflict of
148
+ law provisions. Nothing in this License Agreement shall be deemed to
149
+ create any relationship of agency, partnership, or joint venture
150
+ between BeOpen and Licensee. This License Agreement does not grant
151
+ permission to use BeOpen trademarks or trade names in a trademark
152
+ sense to endorse or promote products or services of Licensee, or any
153
+ third party. As an exception, the "BeOpen Python" logos available at
154
+ http://www.pythonlabs.com/logos.html may be used according to the
155
+ permissions granted on that web page.
156
+
157
+ 7. By copying, installing or otherwise using the software, Licensee
158
+ agrees to be bound by the terms and conditions of this License
159
+ Agreement.
160
+
161
+
162
+ CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1
163
+ ---------------------------------------
164
+
165
+ 1. This LICENSE AGREEMENT is between the Corporation for National
166
+ Research Initiatives, having an office at 1895 Preston White Drive,
167
+ Reston, VA 20191 ("CNRI"), and the Individual or Organization
168
+ ("Licensee") accessing and otherwise using Python 1.6.1 software in
169
+ source or binary form and its associated documentation.
170
+
171
+ 2. Subject to the terms and conditions of this License Agreement, CNRI
172
+ hereby grants Licensee a nonexclusive, royalty-free, world-wide
173
+ license to reproduce, analyze, test, perform and/or display publicly,
174
+ prepare derivative works, distribute, and otherwise use Python 1.6.1
175
+ alone or in any derivative version, provided, however, that CNRI's
176
+ License Agreement and CNRI's notice of copyright, i.e., "Copyright (c)
177
+ 1995-2001 Corporation for National Research Initiatives; All Rights
178
+ Reserved" are retained in Python 1.6.1 alone or in any derivative
179
+ version prepared by Licensee. Alternately, in lieu of CNRI's License
180
+ Agreement, Licensee may substitute the following text (omitting the
181
+ quotes): "Python 1.6.1 is made available subject to the terms and
182
+ conditions in CNRI's License Agreement. This Agreement together with
183
+ Python 1.6.1 may be located on the Internet using the following
184
+ unique, persistent identifier (known as a handle): 1895.22/1013. This
185
+ Agreement may also be obtained from a proxy server on the Internet
186
+ using the following URL: http://hdl.handle.net/1895.22/1013".
187
+
188
+ 3. In the event Licensee prepares a derivative work that is based on
189
+ or incorporates Python 1.6.1 or any part thereof, and wants to make
190
+ the derivative work available to others as provided herein, then
191
+ Licensee hereby agrees to include in any such work a brief summary of
192
+ the changes made to Python 1.6.1.
193
+
194
+ 4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS"
195
+ basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
196
+ IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND
197
+ DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
198
+ FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT
199
+ INFRINGE ANY THIRD PARTY RIGHTS.
200
+
201
+ 5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
202
+ 1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
203
+ A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1,
204
+ OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
205
+
206
+ 6. This License Agreement will automatically terminate upon a material
207
+ breach of its terms and conditions.
208
+
209
+ 7. This License Agreement shall be governed by the federal
210
+ intellectual property law of the United States, including without
211
+ limitation the federal copyright law, and, to the extent such
212
+ U.S. federal law does not apply, by the law of the Commonwealth of
213
+ Virginia, excluding Virginia's conflict of law provisions.
214
+ Notwithstanding the foregoing, with regard to derivative works based
215
+ on Python 1.6.1 that incorporate non-separable material that was
216
+ previously distributed under the GNU General Public License (GPL), the
217
+ law of the Commonwealth of Virginia shall govern this License
218
+ Agreement only as to issues arising under or with respect to
219
+ Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this
220
+ License Agreement shall be deemed to create any relationship of
221
+ agency, partnership, or joint venture between CNRI and Licensee. This
222
+ License Agreement does not grant permission to use CNRI trademarks or
223
+ trade name in a trademark sense to endorse or promote products or
224
+ services of Licensee, or any third party.
225
+
226
+ 8. By clicking on the "ACCEPT" button where indicated, or by copying,
227
+ installing or otherwise using Python 1.6.1, Licensee agrees to be
228
+ bound by the terms and conditions of this License Agreement.
229
+
230
+ ACCEPT
231
+
232
+
233
+ CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2
234
+ --------------------------------------------------
235
+
236
+ Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam,
237
+ The Netherlands. All rights reserved.
238
+
239
+ Permission to use, copy, modify, and distribute this software and its
240
+ documentation for any purpose and without fee is hereby granted,
241
+ provided that the above copyright notice appear in all copies and that
242
+ both that copyright notice and this permission notice appear in
243
+ supporting documentation, and that the name of Stichting Mathematisch
244
+ Centrum or CWI not be used in advertising or publicity pertaining to
245
+ distribution of the software without specific, written prior
246
+ permission.
247
+
248
+ STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
249
+ THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
250
+ FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
251
+ FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
252
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
253
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
254
+ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -0,0 +1,84 @@
1
+ argparse
2
+ ========
3
+
4
+ [![Build Status](https://secure.travis-ci.org/nodeca/argparse.svg?branch=master)](http://travis-ci.org/nodeca/argparse)
5
+ [![NPM version](https://img.shields.io/npm/v/argparse.svg)](https://www.npmjs.org/package/argparse)
6
+
7
+ CLI arguments parser for node.js, with [sub-commands](https://docs.python.org/3.9/library/argparse.html#sub-commands) support. Port of python's [argparse](http://docs.python.org/dev/library/argparse.html) (version [3.9.0](https://github.com/python/cpython/blob/v3.9.0rc1/Lib/argparse.py)).
8
+
9
+ **Difference with original.**
10
+
11
+ - JS has no keyword arguments support.
12
+ - Pass options instead: `new ArgumentParser({ description: 'example', add_help: true })`.
13
+ - JS has no python's types `int`, `float`, ...
14
+ - Use string-typed names: `.add_argument('-b', { type: 'int', help: 'help' })`.
15
+ - `%r` format specifier uses `require('util').inspect()`.
16
+
17
+ More details in [doc](./doc).
18
+
19
+
20
+ Example
21
+ -------
22
+
23
+ `test.js` file:
24
+
25
+ ```javascript
26
+ #!/usr/bin/env node
27
+ 'use strict';
28
+
29
+ const { ArgumentParser } = require('argparse');
30
+ const { version } = require('./package.json');
31
+
32
+ const parser = new ArgumentParser({
33
+ description: 'Argparse example'
34
+ });
35
+
36
+ parser.add_argument('-v', '--version', { action: 'version', version });
37
+ parser.add_argument('-f', '--foo', { help: 'foo bar' });
38
+ parser.add_argument('-b', '--bar', { help: 'bar foo' });
39
+ parser.add_argument('--baz', { help: 'baz bar' });
40
+
41
+ console.dir(parser.parse_args());
42
+ ```
43
+
44
+ Display help:
45
+
46
+ ```
47
+ $ ./test.js -h
48
+ usage: test.js [-h] [-v] [-f FOO] [-b BAR] [--baz BAZ]
49
+
50
+ Argparse example
51
+
52
+ optional arguments:
53
+ -h, --help show this help message and exit
54
+ -v, --version show program's version number and exit
55
+ -f FOO, --foo FOO foo bar
56
+ -b BAR, --bar BAR bar foo
57
+ --baz BAZ baz bar
58
+ ```
59
+
60
+ Parse arguments:
61
+
62
+ ```
63
+ $ ./test.js -f=3 --bar=4 --baz 5
64
+ { foo: '3', bar: '4', baz: '5' }
65
+ ```
66
+
67
+
68
+ API docs
69
+ --------
70
+
71
+ Since this is a port with minimal divergence, there's no separate documentation.
72
+ Use original one instead, with notes about difference.
73
+
74
+ 1. [Original doc](https://docs.python.org/3.9/library/argparse.html).
75
+ 2. [Original tutorial](https://docs.python.org/3.9/howto/argparse.html).
76
+ 3. [Difference with python](./doc).
77
+
78
+
79
+ argparse for enterprise
80
+ -----------------------
81
+
82
+ Available as part of the Tidelift Subscription
83
+
84
+ The maintainers of argparse and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-argparse?utm_source=npm-argparse&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)