From 2185ee769f71dcf04b6a0202c69ffacdacd22b19 Mon Sep 17 00:00:00 2001 From: amikhalev Date: Wed, 28 Jun 2017 13:51:04 -0600 Subject: [PATCH] Added argv tests for yargs --- types/yargs/yargs-tests.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/types/yargs/yargs-tests.ts b/types/yargs/yargs-tests.ts index 344744dc38..44e62d66dd 100644 --- a/types/yargs/yargs-tests.ts +++ b/types/yargs/yargs-tests.ts @@ -113,6 +113,12 @@ function line_count() { // Below are tests for individual methods. // Not all methods are covered yet, and neither are all possible invocations of methods. +function Argv$argv() { + let argv = yargs.argv; + console.log("command name: " + argv.$0); + console.log("command: " + argv._[1]); +} + function Argv_parsing() { let argv1 = yargs.argv; let argv2 = yargs(['-x', '1', '-y', '2']).argv;