koenvervloesem/hermes-audio-server

View on GitHub
bin/hermes-audio-recorder

Summary

Maintainability
Test Coverage
#!/usr/bin/env python3
import plac

from hermes_audio_server.about import RECORDER
from hermes_audio_server import cli
from hermes_audio_server.config import DEFAULT_CONFIG


def main(verbose: ('use verbose output', 'flag', 'v'),
         version: ('print version information and exit', 'flag', 'V'),
         config: ('configuration file [default: {}]'.format(DEFAULT_CONFIG),
                  'option', 'c'),
         daemon: ('run as daemon', 'flag', 'd')):
    """hermes-audio-recorder is an audio server implementing the recording part
    of the Hermes protocol."""
    cli.main(RECORDER, verbose, version, config, daemon)


if __name__ == '__main__':
    plac.call(main)