bin/hermes-audio-player
#!/usr/bin/env python3
import plac
from hermes_audio_server.about import PLAYER
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-player is an audio server implementing the playback part of
the Hermes protocol."""
cli.main(PLAYER, verbose, version, config, daemon)
if __name__ == '__main__':
plac.call(main)