diff options
| author | Scott Gasch <[email protected]> | 2022-02-03 19:37:38 -0800 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2022-02-03 19:37:38 -0800 |
| commit | 76bc42a750b1c4d0ce81179337e47dc08db7b386 (patch) | |
| tree | a2af0d5a2ac7e018c3eeffca3bf686e5f7100b23 | |
| parent | 1ddc626af0a4d57f217008525bca488fdf5ebe6f (diff) | |
Make it possible for users of this library to override argparse's
epilog message.
| -rw-r--r-- | config.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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: |
