Giter Club home page Giter Club logo

Comments (2)

aztek avatar aztek commented on July 26, 2024

Also, how about renaming it to --help, rather than --show_options? Plus an alias to -h. It seems to be the most common naming. I don't know how is it possible to discover --show_options option without knowing in advance that it exists.

from vampire.

selig avatar selig commented on July 26, 2024

I began work on this feature, which has also been useful in starting to properly understand what options there are and what they mean.

It's in branch https://github.com/easychair/vampire/tree/show_options

I've done more than originally intended. I'm not sure if it's the correct approach as it makes parsing options slightly more work. This can be reviewed.

The basic idea is that every option in Options.cpp is specified in the form

OptionName("sat_solver","sas",VAMPIRE_TAG,
"Select the SAT solver to be used throughout the solver. This will be used in AVATAR (for splitting) when the saturation algorithm is discount,lrs or otter and in instance generation for selection and global subsumption. The buf options are experimental (they add buffering).",
false, "vampire",OptionValues("buf_lingeling","buf_vampire",
"lingeling","vampire")),

Which gives a long name, short name, tag, description, experimental flag, default option and list of options. The tag can be used to filter the options so --show_options vampire will only show options related to vampire mode. This is then formatted as

--sat_solver (-sas)
Select the SAT solver to be used throughout the solver. This will be used
in AVATAR (for splitting) when the saturation algorithm is discount,lrs
or otter and in instance generation for selection and global subsumption.
The buf options are experimental (they add buffering).
values: buf_lingeling,buf_vampire,lingeling,vampire
default: vampire

I have also added a --help option that will (eventually) print some minimal usage help and tell the user about the show_options option.

This is still work in progress (and relatively low priority). It still needs lots of tidying and appropriate tags and descriptions adding to each option.

Hopefully this extension will

  1. increase the usability of the tool
  2. make adding new options and maintaining current options easier

from vampire.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.