command-line-api icon indicating copy to clipboard operation
command-line-api copied to clipboard

Why are we inferring the root command when it is required to be passed into the Tokenizer.Tokenize call?

Open PonchoPowers opened this issue 1 year ago • 0 comments

Why are we inferring the root command when it is required to be passed into the Tokenizer.Tokenize call? The logic doesn't really make much sense because on one hand you are saying provide me with a root command, then you proceed to ignore it if inferRootCommand is set to true.

Also, if not mistaken, the root command name is meaningless because you can simply rename the program and then the root command name would change, so if inferred, it can't be relied upon as the user can simply change the name of the exe, so the only benefit of inferring it would be when logging or output to the console, in which case you would use the CliExecutable to get the name anyway.

PonchoPowers avatar Jun 07 '24 02:06 PonchoPowers