IMP logo
IMP Reference Guide  2.8.0
The Integrative Modeling Platform
IMP.OptionParser Class Reference

IMP-specific subclass of optparse.OptionParser. More...

Inherits OptionParser.

Detailed Description

IMP-specific subclass of optparse.OptionParser.

This adds options common to all IMP applications (see IMP::setup_from_argv()).

Note
This class is only available in Python.

Definition at line 9369 of file __init__.py.

Public Member Functions

def parse_args
 Parse the command line and return options and positional arguments. More...
 

Member Function Documentation

def IMP.OptionParser.parse_args (   self,
  num_positional = None 
)

Parse the command line and return options and positional arguments.

This functions in the same way as the method in the base class optparse.OptionParser, except that it also processes options common to all IMP applications (these are not returned in opts, but can be obtained in the usual way, e.g. by calling IMP::get_string_flag()).

Parameters
[in]num_positionalIf a positive integer, exactly that many positional arguments must be specified on the command line; if a negative integer, that many or more must be given; if None, any number of positional arguments can be given.
Returns
opts, args

Definition at line 9434 of file __init__.py.


The documentation for this class was generated from the following file: