diff --git a/patacrep/songbook/__main__.py b/patacrep/songbook/__main__.py index 7006e16f..523cae07 100644 --- a/patacrep/songbook/__main__.py +++ b/patacrep/songbook/__main__.py @@ -39,6 +39,10 @@ class VerboseAction(argparse.Action): LOGGER.setLevel(logging.DEBUG) def yesno_type(string): + """Interpret argument as a "yes" or a "no". + + Raise `argparse.ArgumentTypeError` if string cannot be analysed. + """ try: return yesno(string) except ValueError as error: