You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Split the class Options into Options which holds the options as fields, and OptionsHandler which takes a parameterized Options type and can export argparse information for that option, handle default values, and instantiate its Options class.
Commands would then be instantiated by passing in OptionsHandlers for the appropriate sets of options
Pretty rough sketch, but basically the idea is that we are only declaratively making options, and the parsers are generated for us, and then more functionality can be derived from the declarative arguments instead of speciffying thinsg like the parser/toml reader directly.
For a follow-up refactor to runtimeverification/pyk#916
Split the class
Options
intoOptions
which holds the options as fields, andOptionsHandler
which takes a parameterizedOptions
type and can export argparse information for that option, handle default values, and instantiate itsOptions
class.Commands would then be instantiated by passing in
OptionsHandler
s for the appropriate sets of optionsSee comment here
The text was updated successfully, but these errors were encountered: