1

handle no default

This commit is contained in:
Evan Pratten 2023-10-25 15:45:52 -04:00
parent 1770c2978d
commit f948885c68

View File

@ -33,8 +33,8 @@ def main() -> int:
print(f"{section}{'*' if bool(config[section].get('Required', False)) else ''}: {config[section].get('Description', 'No description')}")
if args.show_types:
print(f" Type: {config[section].get('Type', 'No type')}")
if args.show_defaults:
print(f" Default: {config[section].get('Default', 'No default')}")
if args.show_defaults and "Default" in config[section]:
print(f" Default: {config[section]['Default']}")
return 0