From 0cab6f24ef7ca070bd2b8598823ce62862fb032a Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Thu, 28 May 2026 13:08:07 -0700 Subject: [PATCH] Add ArgumentDefaultsHelpFormatter to EntryPoint.parser Helps show more information about the default value for a given argument. For example, from the output of `armi vis-file -h` ``` --format, -f FORMAT Output format. Supported formats: `vtk` and `xdmf` (default: vtk) --nodes NODES An optional list of time nodes to include. Should look like `(1,0)(1,1)(1,2)`, etc (default: None) --max-node MAX_NODE An optional (cycle,timeNode) tuple to specify the latest time step that should be included (default: None) --min-node MIN_NODE An optional (cycle,timeNode) tuple to specify the earliest time step that should be included (default: None) ``` --- armi/cli/entryPoint.py | 1 + 1 file changed, 1 insertion(+) diff --git a/armi/cli/entryPoint.py b/armi/cli/entryPoint.py index feabbac01b..75b30e026e 100644 --- a/armi/cli/entryPoint.py +++ b/armi/cli/entryPoint.py @@ -104,6 +104,7 @@ def __init__(self): self.parser = argparse.ArgumentParser( prog="{} {}".format(context.APP_NAME, self.name), description=self.description or self.__doc__, + formatter_class=argparse.ArgumentDefaultsHelpFormatter, ) if self.settingsArgument is not None: if self.settingsArgument not in ["required", "optional"]: