#!/bin/sh
case $@ in
    -h|--help)
        cat << EOF
pytonectl 3.0.2
Copyright (C) 2003 Jrg Lehmann <joerg@luga.de>
usage: pytonectl.py [options] command

Possible options are:
   -h, --help:              show this help
   -s, --server <hostname>: connect to PyTone server on hostname
   -p, --port <portnumber>: connect to PyTone server on given port
   -f, --file <filename>:   connect to PyTone UNIX socket filename

The supported commands are:
    playerforward:                  play the next song in the playlist
    playerpause:                    pause the player
    playerstart:                    start/unpause the player
    playerstop:                     stop the player
    playerratecurrentsong <rating>: rate the song currently being played (1<=rating<=5)
    playlistaddsongs <filenames>:   add files to end of playlist
    playlistaddsongtop <filename>:  play file immediately
    playlistclear:                  clear the playlist
    playlistdeleteplayedsongs:      remove all played songs from the playlist
    playlistreplay:                 mark all songs in the playlist as unplayed
    playlistshuffle:                shuffle the playlist

EOF
        ;;
        *)
            /usr/bin/python /usr/lib/python2.7/site-packages/pytone/pytonectl.pyc $@
        ;;
esac
