fix(smartcli): Allow passing argv to startParse and improve getUserArgs Deno/runtime handling; update tests and add license

This commit is contained in:
2025-10-28 15:42:39 +00:00
parent 5c65c43589
commit 01623eab2a
5 changed files with 17 additions and 11 deletions

View File

@@ -19,7 +19,8 @@ tap.test('should add an command', async (toolsArg) => {
console.log(process.argv);
process.argv.splice(2, 0, 'awesome');
console.log(process.argv);
smartCliTestObject.startParse();
// Pass process.argv explicitly for testing (bypasses Deno.args in Deno environments)
smartCliTestObject.startParse(process.argv);
await done.promise;
});