Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make utility executables exit with error code 0 when running --help #1001

Merged
merged 1 commit into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion util/uhdm-cmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static int32_t usage(const char *progName) {
<< " = 0, if input files are equal" << std::endl
<< " < 0, if input files are not equal" << std::endl
<< " > 0, for any failures" << std::endl;
return 1;
return 0;
}

int32_t main(int32_t argc, char **argv) {
Expand Down
2 changes: 1 addition & 1 deletion util/uhdm-dump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ static int32_t usage(const char *progname) {
"\nIf golden file is given to compare, exit code represent if output "
"matches.\n");

return 1;
return 0;
}

int32_t main(int32_t argc, char **argv) {
Expand Down
2 changes: 1 addition & 1 deletion util/uhdm-hier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static int32_t usage(const char* progname) {
fprintf(stderr, "Usage:\n%s [options] <uhdm-file> ?--line?\n", progname);
fprintf(stderr,
"Reads UHDM binary representation and prints hierarchy tree.\n");
return 1;
return 0;
}

int32_t main(int32_t argc, char** argv) {
Expand Down
2 changes: 1 addition & 1 deletion util/uhdm-lint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static int32_t usage(const char *progName) {
<< std::endl
<< std::endl
<< "Exits with code" << std::endl;
return 1;
return 0;
}

class MyLinter : public UHDM::VpiListener {
Expand Down