Skip to content

Customisable guess logic #99

Description

@martinpengellyphillips

Would be useful to have an easy way to customise the assembling._guess logic so that it can be changed in one place for a program rather than having to duplicate argh decorators.

For example, would prefer boolean arguments to be treated as explicitly set truthy / falsey values rather than switches. At present have to do the following for each related boolean argument and feel like this could be centralised somehow:

@argh.decorators.arg('--with-some-flag', action='store', type=explicit_bool_type)
def foo(with_some_flag=True):
    ...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions