Added checking non-handled cases for 'vitis show'. Closed #11

parent f0917259
......@@ -109,8 +109,12 @@ void mainFn(string[] args) {
bool modeCategoriesList;
bool help;
getopt(args, config.passThrough, "all-categories", &modeCategoriesList, "h|help", &help);
checkCondition!err(help == false); // here '--help' is wrong option
getopt(
args, config.passThrough,
"all-categories", &modeCategoriesList,
"h|help", &help
);
checkCondition!err(help == false); // here '--help' is wrong option
if (command == CE.e_show && modeCategoriesList) {
bool showAutoCategories;
getopt(args, config.passThrough, "auto", &showAutoCategories);
......@@ -186,6 +190,7 @@ void mainFn(string[] args) {
}
return;
}
checkCondition!err(false);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment