Skip to content

Commit

Permalink
Merge pull request OpenMDAO#300 from xjjiang/cmd_line_verbosity
Browse files Browse the repository at this point in the history
Command line verbosity option
  • Loading branch information
jkirk5 authored Jun 5, 2024
2 parents 7bd3f9f + 173c554 commit ed7e75d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aviary/utils/fortran_to_aviary.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ def _setup_F2A_parser(parser):
"--legacy_code",
type=LegacyCode,
help="Name of the legacy code the deck originated from",
choices=list(LegacyCode),
choices=set(LegacyCode),
required=True
)
parser.add_argument(
Expand All @@ -629,8 +629,8 @@ def _setup_F2A_parser(parser):
parser.add_argument(
"-v",
"--verbosity",
type=Verbosity,
choices=list(Verbosity),
type=int,
choices=Verbosity.set(),
default=1,
help="Set level of print statements",
)
Expand Down
4 changes: 4 additions & 0 deletions aviary/variable_info/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,7 @@ class Verbosity(Enum):

def __str__(self):
return str(self.value)

@classmethod
def set(cls):
return {c.value for c in cls}

0 comments on commit ed7e75d

Please sign in to comment.