def add_command_arguments(parser):
    """
    Additional command line arguments for the behave management command
    """
    parser.add_argument(
        '--noinput',
        '--no-input',
        action='store_const',
        const=False,
        dest='interactive',
        help='Tells Django to NOT prompt the user for input of any kind.',
    )
    parser.add_argument(
        '--failfast', action='store_const', const=True, dest='failfast',
        help=('Tells Django to stop running the '
              'test suite after first failed test.'),
    )
    parser.add_argument(
        '-r', '--reverse', action='store_const', const=True, dest='reverse',
        help='Reverses test cases order.',
    )
    parser.add_argument(
        '--use-existing-database',
        action='store_true',
        default=False,
        help="Don't create a test database. USE AT YOUR OWN RISK!",
    )
    parser.add_argument(
        '-k', '--keepdb',
        action='store_const',
        const=True,
        help="Preserves the test DB between runs.",
    )
    parser.add_argument(
        '-S', '--simple',
        action='store_true',
        default=False,
        help="Use simple test runner that supports Django's"
        " testing client only (no web browser automation)"
    )
def add_command_arguments ( parser ) : parser . add_argument ( '--noinput' , '--no-input' , action = 'store_const' , const = False , dest = 'interactive' , help = 'Tells Django to NOT prompt the user for input of any kind.' , ) parser . add_argument ( '--failfast' , action = 'store_const' , const = True , dest = 'failfast' , help = ( 'Tells Django to stop running the ' 'test suite after first failed test.' ) , ) parser . add_argument ( '-r' , '--reverse' , action = 'store_const' , const = True , dest = 'reverse' , help = 'Reverses test cases order.' , ) parser . add_argument ( '--use-existing-database' , action = 'store_true' , default = False , help = "Don't create a test database. USE AT YOUR OWN RISK!" , ) parser . add_argument ( '-k' , '--keepdb' , action = 'store_const' , const = True , help = "Preserves the test DB between runs." , ) parser . add_argument ( '-S' , '--simple' , action = 'store_true' , default = False , help = "Use simple test runner that supports Django's" " testing client only (no web browser automation)" )
Additional command line arguments for the behave management command