diff options
author | Barry Warsaw <barry@python.org> | 1998-11-18 03:28:45 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1998-11-18 03:28:45 (GMT) |
commit | d81d534aef5fe8d6c081121dd545623e7ea2e889 (patch) | |
tree | 7ce3b4e54768a1361f00e99d4cf3382d751f74bb /Tools/audiopy | |
parent | 615a66a5ef4f127e4851344b7f67f1dfde6d2155 (diff) | |
download | cpython-d81d534aef5fe8d6c081121dd545623e7ea2e889.zip cpython-d81d534aef5fe8d6c081121dd545623e7ea2e889.tar.gz cpython-d81d534aef5fe8d6c081121dd545623e7ea2e889.tar.bz2 |
A bit of tweakage of the --help and --version options
Diffstat (limited to 'Tools/audiopy')
-rwxr-xr-x | Tools/audiopy/audiopy | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/Tools/audiopy/audiopy b/Tools/audiopy/audiopy index 1af1486..e1ab1b6 100755 --- a/Tools/audiopy/audiopy +++ b/Tools/audiopy/audiopy @@ -1,9 +1,10 @@ #! /usr/bin/env python -"""Program to control the Solaris audio device. +"""audiopy -- a program to control the Solaris audio device. -Author: Barry Warsaw -Email: bwarsaw@python.org +Author: Barry Warsaw +Email: bwarsaw@python.org +Version: %(__version__)s When no arguments are given, this pops up a graphical window which lets you choose the audio input and output devices. @@ -46,7 +47,7 @@ from SUNAUDIODEV import * # Milliseconds between interrupt checks KEEPALIVE_TIMER = 500 -__version__ = '1.0' +__version__ = '0.1' @@ -280,7 +281,7 @@ class MainWindow: def usage(msg='', code=1): - print __doc__ + print __doc__ % globals() print msg sys.exit(code) @@ -320,7 +321,11 @@ def main(): usage(code=0) # does not return elif arg in ('-v', '--version'): - print 'audiopy version', __version__ + print '''\ +audiopy -- a program to control the Solaris audio device. +Author: Barry Warsaw +Email: bwarsaw@python.org +Version: %s''' % __version__ sys.exit(0) for long, short, io, mask in options: if arg in (long, short): |