From 6e2dd7bdd56f3ce921812f6a881eeda4df1238a8 Mon Sep 17 00:00:00 2001 From: JenChieh Date: Thu, 13 Jun 2024 16:19:00 -0700 Subject: [PATCH] fix: Unknown arg for outdated command --- cmds/core/outdated.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmds/core/outdated.js b/cmds/core/outdated.js index f816f415..454f80a9 100644 --- a/cmds/core/outdated.js +++ b/cmds/core/outdated.js @@ -19,6 +19,15 @@ exports.command = ['outdated']; exports.desc = 'Show all outdated dependencies'; +exports.builder = yargs => yargs + .options({ + 'depth': { + description: 'dependency depth level to print', + requiresArg: true, + type: 'number', + group: TITLE_CMD_OPTION, + }, + }); exports.handler = async (argv) => { await UTIL.e_call(argv, 'core/outdated');