(parser, start_help, end_help)
Add --start-time and --end-time args to a parser

    :param start_help: help string for --start-time
    :param end_help: help string for --end-time
Add --start-time and --end-time args to a parser
Add -- start - time and -- end - time args to a parser
def add_start_end_args(parser, start_help, end_help):  # pragma: no cover
    """ Add --start-time and --end-time args to a parser

    :param start_help: help string for --start-time
    :param end_help: help string for --end-time
    """
    parser.add_argument(
        "--start-time",
        metavar="timestamp",
        default="-1h",
        help=f'{start_help} (try "yesterday", "-5m", "3 months ago"; use quotes)',
    )
    parser.add_argument(
        "--end-time",
        metavar="timestamp",
        default="now",
        help=f'{end_help} (try "yesterday", "-5m", "3 months ago"; use quotes)',
    )
def add_start_end_args ( parser , start_help , end_help ) : # pragma: no cover parser . add_argument ( "--start-time" , metavar = "timestamp" , default = "-1h" , help = f'{start_help} (try "yesterday", "-5m", "3 months ago"; use quotes)' , ) parser . add_argument ( "--end-time" , metavar = "timestamp" , default = "now" , help = f'{end_help} (try "yesterday", "-5m", "3 months ago"; use quotes)' , )