miniconf.py: add iir example

This commit is contained in:
Robert Jördens 2021-04-08 16:20:28 +02:00
parent dfd1a008bd
commit 7372bcc2e2
1 changed files with 6 additions and 3 deletions

View File

@ -83,9 +83,12 @@ class Miniconf:
def main(): def main():
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
description='Miniconf command line interface.', description='Miniconf command line interface.',
epilog='''Example: formatter_class=argparse.RawDescriptionHelpFormatter,
%(prog)s -v -b mqtt dt/sinara/stabilizer afe/0 '"G10"' epilog='''Examples:
''') %(prog)s dt/sinara/stabilizer afe/0 '"G10"'
%(prog)s dt/sinara/stabilizer iir_ch/0/0 \
'{"y_min": -32767, "y_max": 32767, "y_offset": 0, "ba": [1.0, 0, 0, 0, 0]}'
''')
parser.add_argument('-v', '--verbose', action='count', default=0, parser.add_argument('-v', '--verbose', action='count', default=0,
help='Increase logging verbosity') help='Increase logging verbosity')
parser.add_argument('--broker', '-b', default='mqtt', type=str, parser.add_argument('--broker', '-b', default='mqtt', type=str,