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

Option --help prints blanks #5

Open
vuphan314 opened this issue Jan 18, 2022 · 2 comments
Open

Option --help prints blanks #5

vuphan314 opened this issue Jan 18, 2022 · 2 comments

Comments

@vuphan314
Copy link

@fbacchus Dr. Bacchus,

The MSE21 and MSE20 versions print help as blank characters (--help and --help-verb).

The MSE19 version prints help correctly.

Could you have a look?

Thank you.

@fbacchus
Copy link
Owner

Unfortunately there is a bug in minisat's option processing that I have not traced down. In fact I have switched to my own option parser post MSE21. However, I cannot modify these old versions without diverging from the official version submitted to the evaluation, so this bug will persist in these versions...but will be fixed in the next version.

If you look at the file maxhs/utils/Params.cc you will find all the command line options information that would have
been printed with --help-verb. E.g.,

static IntOption opt_verb(maxhs, "verb",
"Verbosity level (0=silent, 1=some, 2=more, "
"3=debugging output, 4=more debugging output).",
1, IntRange(0, 5));

In each xxxOption variable the second argument ("verb" in the above example) is what is used on the command line, the help is the 3rd argument, the default the 4th argument, and in this case the range of legal values the 5th argumeent, e.g.

maxhs -verb=3

works on the command line. Sorry this is a bit of a clunky way of getting the information, but it can be done.

Many of the options are intended for development and would be difficult to use unless you know the code.

At some point I should document the "user" focused options. But until then I'm happy to answer any questions you have.

@vuphan314
Copy link
Author

I appreciate the detailed explanation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants