Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
babel.messages.frontend.CommandLineInterface Class Reference
Collaboration diagram for babel.messages.frontend.CommandLineInterface:
Collaboration graph
[legend]

Public Member Functions

 run (self, argv=None)
 

Public Attributes

 parser
 

Static Public Attributes

str usage = '%%prog %s [options] %s'
 
str version = f'%prog {VERSION}'
 
dict commands
 
dict command_classes
 
 log = None
 

Protected Member Functions

 _configure_logging (self, loglevel)
 
 _help (self)
 
 _configure_command (self, cmdname, argv)
 

Detailed Description

Command-line interface.

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

Member Function Documentation

◆ _configure_command()

babel.messages.frontend.CommandLineInterface._configure_command (   self,
  cmdname,
  argv 
)
protected
:type cmdname: str
:type argv: list[str]

◆ run()

babel.messages.frontend.CommandLineInterface.run (   self,
  argv = None 
)
Main entry point of the command-line interface.

:param argv: list of arguments passed on the command-line

Member Data Documentation

◆ command_classes

dict babel.messages.frontend.CommandLineInterface.command_classes
static
Initial value:
= {
'compile': CompileCatalog,
'extract': ExtractMessages,
'init': InitCatalog,
'update': UpdateCatalog,
}

◆ commands

dict babel.messages.frontend.CommandLineInterface.commands
static
Initial value:
= {
'compile': 'compile message catalogs to MO files',
'extract': 'extract messages from source files and generate a POT file',
'init': 'create new message catalogs from a POT file',
'update': 'update existing message catalogs from a POT file',
}

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