The namespace tool core-dumps when running the following command
vmware-namespace-cmd -V get-value name -k key
This is because glib options parser removed the -V from the argv,
and passed the ValidateNsCommands() check. However, the later
RunNamespacecommand shall ASSERT() on the NULL nscmd.
* Validating namespace command name after g_context_parser
* because argv[1] can have string "--help"
*/
- if (argc > 1 && ValidateNSCommands(argv[1]) == FALSE) {
+ if (argc > 1 && ValidateNSCommands(nsOptions.cmdName) == FALSE) {
goto exit;
}