shapepipe.pipeline.args

shapepipe.pipeline.args

ARGUMENT HANDLING.

This module defines methods for handling the pipeline arguments.

Author

Samuel Farrens <samuel.farrens@cea.fr>

class cutomFormatter(prog, indent_increment=2, max_help_position=24, width=None)[source]

Bases: argparse.ArgumentDefaultsHelpFormatter, argparse.RawDescriptionHelpFormatter

Custom Formatter.

This class combines the argparse ArgumentDefaultsHelpFormatter and RawDescriptionHelpFormatter formatters.

print_message(message)[source]

Print Message.

This method returns a custom argparse action for printing a message.

Parameters

message (str) – Message to be displayed

Returns

Custom action class object

Return type

customAction

module_str()[source]

Format Module String.

Format the list of modules as a single string.

Returns

Formatted string of module names

Return type

str

create_arg_parser()[source]

Create Argument Parser.

This method returns an argument parser.

Returns

Argument parser

Return type

argparse.Namespace