"vmware-toolbox-cmd -v" is extracting OS version information (lsb_release,os-release,other-release files)
Describe the bug
just running "vmware-toolbox-cmd -v" should provide only the Tools version. This command line is typically used by monitoring tools like saposcol and others very frequently.
Running strace shows all OS informations are extracted (maybe for logging to logfile?) .. in that case, I would not understand why logging is required for getting the tool version information
Reproduction steps
- strace vmware-toolbox-cmd -v
Expected behavior
just provide version, no need to read other OS related information. Keep this as simple / cheap as possible.
Additional context
No response
vmware-toolbox-cmd needs to handle various functions such as config, send rpc command, timesync etc, which needs to be adapted for different distros. However, for the simple version(-v) and help( -h) we could just print some message and exit earlier.