diff options
Diffstat (limited to 'tests/testdata/npm/cjs_yargs/main.js')
-rw-r--r-- | tests/testdata/npm/cjs_yargs/main.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/testdata/npm/cjs_yargs/main.js b/tests/testdata/npm/cjs_yargs/main.js deleted file mode 100644 index 832fd053c..000000000 --- a/tests/testdata/npm/cjs_yargs/main.js +++ /dev/null @@ -1,20 +0,0 @@ -import yargs from "npm:yargs@15.4.1"; - -const args = yargs(["serve", "8000"]) - .command("serve [port]", "start the server", (yargs) => { - return yargs - .positional("port", { - describe: "port to bind on", - default: 5000, - }); - }, (argv) => { - console.info(`start server on :${argv.port}`); - }) - .option("verbose", { - alias: "v", - type: "boolean", - description: "Run with verbose logging", - }) - .argv; - -console.log(args); |