Skip to content

Commit 2fcc60b

Browse files
committed
Remove duplicated --help argument handling
The `parse_options_baset::main` function checks for a `--help` argument. It calls the `help()` member function and exits rather than calling `doit()` when this argument is specified. The duplicated code removed by this commit was misleading because it was never reached when the `--help` argument was specified.
1 parent 5a667fd commit 2fcc60b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/goto-bmc/goto_bmc_parse_options.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ int goto_bmc_parse_optionst::doit()
3030
return CPROVER_EXIT_SUCCESS;
3131
}
3232

33-
if(cmdline.isset("help"))
34-
{
35-
help();
36-
return CPROVER_EXIT_SUCCESS;
37-
}
38-
3933
api_sessiont api{api_options};
4034

4135
if(cmdline.args.size() != 1 || !api.is_goto_binary(cmdline.args[0]))

0 commit comments

Comments
 (0)