Browse Source

Add docstring

pull/158/head
Louis 9 years ago
parent
commit
d076be098a
  1. 4
      patacrep/songbook/__main__.py

4
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:

Loading…
Cancel
Save