Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d81d534a
Commit
d81d534a
authored
Nov 18, 1998
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A bit of tweakage of the --help and --version options
parent
615a66a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
Tools/audiopy/audiopy
Tools/audiopy/audiopy
+11
-6
No files found.
Tools/audiopy/audiopy
View file @
d81d534a
#! /usr/bin/env python
"""
P
rogram to control the Solaris audio device.
"""
audiopy -- a p
rogram to control the Solaris audio device.
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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment