2.6.1. arc.cli.app — Main Application Implementation

class arc.cli.app.App(config_klass=None, argument_parser_klass=None)

Base class for CLI application

Initializes a new app instance.

This class is intended both to be used by the stock arcli application and also to be reused by custom applications. If you want, say, to limit the amount of command line actions and its arguments, you can simply supply another argument parser class to this constructor. Of course another way to customize it is to inherit from this and modify its members at will.

Parameters:
  • config_klass – an optional configuration class. By default it will use the arc.config.Config class.
  • argument_parser_klass – an optional argument parser class. By default it will use arc.cli.args.parser.Parser
__init__(config_klass=None, argument_parser_klass=None)

Initializes a new app instance.

This class is intended both to be used by the stock arcli application and also to be reused by custom applications. If you want, say, to limit the amount of command line actions and its arguments, you can simply supply another argument parser class to this constructor. Of course another way to customize it is to inherit from this and modify its members at will.

Parameters:
  • config_klass – an optional configuration class. By default it will use the arc.config.Config class.
  • argument_parser_klass – an optional argument parser class. By default it will use arc.cli.args.parser.Parser