From: Scott Gasch Date: Fri, 4 Feb 2022 03:37:38 +0000 (-0800) Subject: Make it possible for users of this library to override argparse's X-Git-Url: https://wannabe.guru.org/gitweb/?a=commitdiff_plain;h=76bc42a750b1c4d0ce81179337e47dc08db7b386;p=python_utils.git Make it possible for users of this library to override argparse's epilog message. --- diff --git a/config.py b/config.py index 22660cc..1ac5cff 100644 --- a/config.py +++ b/config.py @@ -159,6 +159,10 @@ group.add_argument( ) +def overwrite_argparse_epilog(msg: str) -> None: + args.epilog = msg + + def is_flag_already_in_argv(var: str): """Is a particular flag passed on the commandline?""" for _ in sys.argv: