Skip to content
Snippets Groups Projects
Commit 22dec2d0 authored by Marco van Oort's avatar Marco van Oort
Browse files

Prevent -h option from being interpreted as input filename

parent 2c2f267b
No related branches found
No related tags found
No related merge requests found
......@@ -131,9 +131,9 @@ int CalcImbalanceI2f(const struct sparsematrix *pM, double *Imbalance, double *I
int main(int argc, char **argv) {
if(argc < 2) {
if(argc < 2 || !strcmp(argv[1], "-h")) {
PrintStatsHelp(argc, argv);
exit(1);
exit((argc < 2)? 1 : 0);
}
/* Read options */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment