projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update docs.
[python_utils.git]
/
config.py
diff --git
a/config.py
b/config.py
index 7bf812e202be17b0093a04f786d6315414ceb5be..c7c686d738803484a6ae6277af7fc5ebd25d5056 100644
(file)
--- a/
config.py
+++ b/
config.py
@@
-254,6
+254,19
@@
def _reorder_arg_action_groups_before_help(entry_module: Optional[str]):
return reordered_action_groups
return reordered_action_groups
+def print_usage() -> None:
+ """Prints the normal help usage message out."""
+ ARGS.print_help()
+
+
+def usage() -> str:
+ """
+ Returns:
+ program usage help text as a string.
+ """
+ return ARGS.format_usage()
+
+
def _augment_sys_argv_from_environment_variables():
"""Internal. Look at the system environment for variables that match
arg names. This is done via some munging such that:
def _augment_sys_argv_from_environment_variables():
"""Internal. Look at the system environment for variables that match
arg names. This is done via some munging such that:
@@
-269,7
+282,7
@@
def _augment_sys_argv_from_environment_variables():
"""
"""
- usage_message =
ARGS.format_
usage()
+ usage_message = usage()
optional = False
var = ''
for x in usage_message.split():
optional = False
var = ''
for x in usage_message.split():