Skip to content

Commit 20ce428

Browse files
committed
🚸 Specify default in helpstring
1 parent 36528bd commit 20ce428

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CPAC/pipeline/resource_inventory.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# License along with C-PAC. If not, see <https://www.gnu.org/licenses/>.
1818
"""Inspect inputs and outputs for NodeBlockFunctions."""
1919

20-
from argparse import ArgumentParser, Namespace
20+
from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser, Namespace
2121
import ast
2222
from dataclasses import dataclass, field
2323
import importlib
@@ -186,7 +186,8 @@ def as_dict(self) -> dict[str, list[str]]:
186186
def cli_parser() -> Namespace:
187187
"""Parse command line argument."""
188188
parser = ArgumentParser(
189-
description="Inventory resources for C-PAC NodeBlockFunctions."
189+
description="Inventory resources for C-PAC NodeBlockFunctions.",
190+
formatter_class=ArgumentDefaultsHelpFormatter,
190191
)
191192
parser.add_argument(
192193
"-o",

0 commit comments

Comments
 (0)