INNER CODE UNIT · Python

HelpFormatter

pairinteraction/pairinteraction · src/pairinteraction/cli.py:17

class HelpFormatter(argparse.ArgumentDefaultsHelpFormatter, argparse.RawDescriptionHelpFormatter):
    """Show default arguments and keep manual line breaks in the epilog."""


def main() -> int:
    """Entry point for the PairInteraction CLI."""
    parser = argparse.ArgumentParser(
        description=("PairInteraction CLI\n\nRun 'pairinteraction' without a command to launch the GUI."),
        formatter_class=HelpFormatter,
        epilog=(
            "Examples:\n"
            "  pairinteraction\n"
            "  pairinteraction --log-level INFO\n"
            "  pairinteraction --log-level INFO test\n"
            "  pairinteraction database list\n"
            "  pairinteraction database download Rb Cs\n"
            "  pairinteraction database download https://github.com/pairinteraction/database-sqdt/releases/download/v2.0/Rb_v2.0.zip\n"
            "  pairinteraction database remove\n"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…