ipypublish.frontend.shared module

class ipypublish.frontend.shared.CustomFormatter(prog, indent_increment=2, max_help_position=24, width=None)[source]

Bases: argparse.ArgumentDefaultsHelpFormatter, argparse.RawDescriptionHelpFormatter

class ipypublish.frontend.shared.CustomParser(prog=None, usage=None, description=None, epilog=None, parents=[], formatter_class=<class 'argparse.HelpFormatter'>, prefix_chars='-', fromfile_prefix_chars=None, argument_default=None, conflict_handler='error', add_help=True, allow_abbrev=True)[source]

Bases: argparse.ArgumentParser

error(message: string)[source]

Prints a usage message incorporating the message to stderr and exits.

If you override this in a subclass, it should not return – it should either exit or raise an exception.

ipypublish.frontend.shared.get_parser(**kwargs)[source]
ipypublish.frontend.shared.get_plugin_str(plugin_folder_paths, regex, verbose)[source]

return string listing all available export configurations

ipypublish.frontend.shared.parse_options(sys_args, program)[source]