adds an argument invoked by an option without -
or --
.
adds an argument invoked by an option without -
or --
.
name in the usage text
description in the usage text
callback function
adds an optional argument invoked by an option without -
or --
.
adds an optional argument invoked by an option without -
or --
.
name in the usage text
description in the usage text
callback function
adds a list of arguments invoked by options without -
or --
.
adds a list of arguments invoked by options without -
or --
.
name in the usage text
description in the usage text
callback function
adds an optional list of arguments invoked by options without -
or --
.
adds an optional list of arguments invoked by options without -
or --
.
name in the usage text
description in the usage text
callback function
adds a flag option invoked by --longopt
.
adds a flag option invoked by --longopt
.
long option
description in the usage text
callback function
adds a flag option invoked by -shortopt
or --longopt
.
adds a flag option invoked by -shortopt
or --longopt
.
short option
long option
description in the usage text
callback function
adds a String
option invoked by -shortopt x
or --longopt x
.
adds a String
option invoked by -shortopt x
or --longopt x
.
short option, or None
long option
value name in the usage text
description in the usage text
callback function
adds a String
option invoked by -shortopt x
or --longopt x
.
adds a String
option invoked by -shortopt x
or --longopt x
.
short option
long option
value name in the usage text
description in the usage text
callback function
adds a String
option invoked by --longopt x
.
adds a String
option invoked by --longopt x
.
long option
description in the usage text
callback function
adds a String
option invoked by -shortopt x
or --longopt x
.
adds a String
option invoked by -shortopt x
or --longopt x
.
short option
long option
description in the usage text
callback function
parses the given args
.
parses the given args
.
true
if successful, false
otherwise
scopt.immutable.OptionParser
is instantiated within your object, set up by implementingoptions
method that returns a sequence of invocations of the various builder methods such asopt
method orarg
method.