| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a6b0491 commit fe1dcb5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,14 +13,14 @@ let inputFile = null; | |||
| 13 | 13 | let nodeVersion = null; | |
| 14 | 14 | ||
| 15 | 15 | args.forEach(function(arg) { | |
| 16 | - if (!arg.match(/^\-\-/)) { | ||
| 16 | + if (!arg.match(/^--/)) { | ||
| 17 | 17 | inputFile = arg; | |
| 18 | - } else if (arg.match(/^\-\-format=/)) { | ||
| 19 | - format = arg.replace(/^\-\-format=/, ''); | ||
| 20 | - } else if (arg.match(/^\-\-template=/)) { | ||
| 21 | - template = arg.replace(/^\-\-template=/, ''); | ||
| 22 | - } else if (arg.match(/^\-\-node\-version=/)) { | ||
| 23 | - nodeVersion = arg.replace(/^\-\-node\-version=/, ''); | ||
| 18 | + } else if (arg.match(/^--format=/)) { | ||
| 19 | + format = arg.replace(/^--format=/, ''); | ||
| 20 | + } else if (arg.match(/^--template=/)) { | ||
| 21 | + template = arg.replace(/^--template=/, ''); | ||
| 22 | + } else if (arg.match(/^--node-version=/)) { | ||
| 23 | + nodeVersion = arg.replace(/^--node-version=/, ''); | ||
| 24 | 24 | } | |
| 25 | 25 | }); | |
| 26 | 26 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments