ConvertArgs

class lib.cli.args_extract_convert.ConvertArgs(subparser: _SubParsersAction | None, command: str, description: str = 'default')

Bases: ExtractConvertArgs

Creates the command line arguments for conversion.

This class inherits base options from ExtractConvertArgs where arguments that are used for both Extract and Convert should be placed.

Commands explicit to Convert should be added in get_optional_arguments()

Methods Summary

get_argument_list()

Returns the argument list for shared Extract and Convert arguments.

get_info()

The information text for the Convert command.

get_optional_arguments()

Returns the argument list unique to the Convert command.

Methods Documentation

Parameters:
  • subparser (_SubParsersAction | None)

  • command (str)

  • description (str)

static get_argument_list() list[dict[str, Any]]

Returns the argument list for shared Extract and Convert arguments.

Returns:

The list of command line options for the given Extract and Convert

Return type:

list

static get_info() str

The information text for the Convert command.

Returns:

The information text for the Convert command.

Return type:

str

static get_optional_arguments() list[dict[str, Any]]

Returns the argument list unique to the Convert command.

Returns:

The list of optional command line options for the Convert command

Return type:

list

static get_info() str

The information text for the Convert command.

Returns:

The information text for the Convert command.

Return type:

str

static get_optional_arguments() list[dict[str, Any]]

Returns the argument list unique to the Convert command.

Returns:

The list of optional command line options for the Convert command

Return type:

list