Logo Search packages:      
Sourcecode: jhbuild version File versions  Download package

def jhbuild::cut_n_paste::optparse::OptionParser::print_usage (   self,
  file = None 
)

print_usage(file : file = stdout)

Print the usage message for the current program (self.usage) to
'file' (default stdout).  Any occurence of the string "%prog" in
self.usage is replaced with the name of the current program
(basename of sys.argv[0]).  Does nothing if self.usage is empty
or not defined.

Definition at line 1569 of file optparse.py.

01569                                     :
        """print_usage(file : file = stdout)

        Print the usage message for the current program (self.usage) to
        'file' (default stdout).  Any occurence of the string "%prog" in
        self.usage is replaced with the name of the current program
        (basename of sys.argv[0]).  Does nothing if self.usage is empty
        or not defined.
        """
        if self.usage:
            print >>file, self.get_usage()

    def get_version(self):


Generated by  Doxygen 1.6.0   Back to index