Functions for handling options and arguments.
Imported modules
|
|
from StreamFlushTest import StreamFlushTest
import string
import types
|
Functions
|
|
getBooleanArgumentValue
getParameters
|
|
getBooleanArgumentValue
|
getBooleanArgumentValue ( inputValue )
Convert value for a boolean argument into a boolean representation.
When presented with a representation of a boolean value, convert that
represetntation to a 1 or 0 and return it. Currently accepts:
integer or floating point values
strings (with mixed case) with words true , false , yes ,
no , on , off , None
Exceptions
|
|
ValueError( 'Unrecognized boolean value', inputValue )
|
|
|
getParameters
|
getParameters (
prefix,
args,
prefixSeparator='_',
)
Find parameter settings in an argument sequence.
Arguments
- prefix
- Parameter names must begin with this string followed
by
prefixSeparator .
- args
- Sequence containing arguments to scan.
- prefixSeparator
- String separating
prefix from actual
parameter names.
|
Classes
|
|
|
|