fix(core): Remove flawed safety check in getUserArgs and debug log

- Fixed bug where CLI with no args would return entire argv including node path
- Removed debug 'Wanted command: ...' log from startParse()
This commit is contained in:
2026-01-12 01:21:49 +00:00
parent 40c0dfb3df
commit e3f5616320
3 changed files with 2 additions and 8 deletions

View File

@@ -136,7 +136,6 @@ export class Smartcli {
console.log(this.version || 'unknown version');
return;
}
console.log(`Wanted command: ${wantedCommand}`);
for (const command of this.commandObservableMap.getArray()) {
if (!wantedCommand) {
const standardCommand = this.commandObservableMap.findSync((commandArg) => {