Package babel :: Package messages :: Module frontend :: Class CommandLineInterface

Class CommandLineInterface



object --+
         |
        CommandLineInterface

Command-line interface.

This class provides a simple command-line interface to the message extraction and PO file generation functionality.



Instance Methods
 
run(self, argv=['(imported)'])
Main entry point of the command-line interface.
 
extract(self, argv)
Subcommand for extracting messages from source files and generating a POT file.
 
init(self, argv)
Subcommand for creating new message catalogs from a template.

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables
  usage = '%%prog %s [options] %s'
  version = '%prog 0.9dev-r191'
  commands = ['extract', 'init']
  command_descriptions = {'extract': 'extract messages from sour...
Properties

Inherited from object: __class__

Method Details

run(self, argv=['(imported)'])

 
Main entry point of the command-line interface.
Parameters:
  • argv - list of arguments passed on the command-line

extract(self, argv)

 
Subcommand for extracting messages from source files and generating a POT file.
Parameters:
  • argv - the command arguments

init(self, argv)

 
Subcommand for creating new message catalogs from a template.
Parameters:
  • argv - the command arguments

Class Variable Details

command_descriptions

Value:
{'extract': 'extract messages from source files and generate a POT fil\
e',
 'init': 'create new message catalogs from a template'}