pyfunceble_docker/cli.py
def add_common_commands(parser):
    """
    Adds some common commands to the given parser.
    """

    parser.add_argument(
        "-v",
        "--version",
        help="Show the version and exit.",
        action="version",
        version=f"%(prog)s {VERSION}",
    )

    parser.add_argument(
        "-d",
        "--debug",
        help="Activated the debug mode.",
        action="store_true",
        default=False,
    )

    parser.add_argument("-b", "--build-dir", type=str, help="Sets the build directory.")

    parser.add_argument(
        "--pyfunceble-version", help="Sets the PyFunceble version to build.", type=str,
    )

    parser.add_argument(
        "-p", "--pkg-name", help="Sets the name of the package to install.", type=str,
    )

    parser.add_argument(
        "--python-version", help="Sets the Python version to install.", type=str
    )

    return parser

    Adds some common commands to the given parser.
    
Adds some common commands to the given parser.
Adds some common commands to the given parser .
def add_common_commands(parser):
    parser.add_argument(
        "-v",
        "--version",
        help="Show the version and exit.",
        action="version",
        version=f"%(prog)s {VERSION}",
    )
    parser.add_argument(
        "-d",
        "--debug",
        help="Activated the debug mode.",
        action="store_true",
        default=False,
    )
    parser.add_argument("-b", "--build-dir", type=str, help="Sets the build directory.")
    parser.add_argument(
        "--pyfunceble-version", help="Sets the PyFunceble version to build.", type=str,
    )
    parser.add_argument(
        "-p", "--pkg-name", help="Sets the name of the package to install.", type=str,
    )
    parser.add_argument(
        "--python-version", help="Sets the Python version to install.", type=str
    )
    return parser
def add_common_commands ( parser ) : parser . add_argument ( "-v" , "--version" , help = "Show the version and exit." , action = "version" , version = f"%(prog)s {VERSION}" , ) parser . add_argument ( "-d" , "--debug" , help = "Activated the debug mode." , action = "store_true" , default = False , ) parser . add_argument ( "-b" , "--build-dir" , type = str , help = "Sets the build directory." ) parser . add_argument ( "--pyfunceble-version" , help = "Sets the PyFunceble version to build." , type = str , ) parser . add_argument ( "-p" , "--pkg-name" , help = "Sets the name of the package to install." , type = str , ) parser . add_argument ( "--python-version" , help = "Sets the Python version to install." , type = str ) return parser
Adds some common commands to the given parser.
Adds some common commands to the given parser .
"""
    Adds some common commands to the given parser.
    """
parser