NAME = 'mfade'
VERSION = '0.1'
-USAGE = 'USAGE: %prog [--help] [options] [<time> [<final volume level>]'
-DESC = """Fade in/out to <final volume level> over <time>. From 0% to 50% when
-paused or stopped and from current volume to 10th of it if playing, both over 10
-minutes."""
+USAGE = 'USAGE: %prog [--help] | [ <time> [<final volume level>] ]'
+DESC = """Fade in/out to <final volume level> over <time>. Defaults are from 0%
+to 50% when paused or stopped and from current volume to 10th of it if playing,
+both over 10 minutes."""
class Sleep(StartOpt, MPDClass):
""""""
if (len(self.cli_args) < 1 or
len(self.cli_args) > 2):
- self.parser.error('%s requires at least an argument and no more than two!')
+ self.parser.error('need at least an argument and no more than two!')
try:
self.tempo = int(self.cli_args[0])
self.volum = int(self.cli_args[1])