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.
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 ifinferRootCommand
is set totrue
.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.