Add support for flags2 in the TL

This commit is contained in:
Lonami Exo
2022-05-12 10:20:42 +02:00
parent f9643bf737
commit 5feb210442
4 changed files with 44 additions and 46 deletions

View File

@@ -164,7 +164,7 @@ def _get_description(arg):
if arg.can_be_inferred:
desc.append('If left unspecified, it will be inferred automatically.')
otherwise = True
elif arg.is_flag:
elif arg.flag:
desc.append('This argument defaults to '
'<code>None</code> and can be omitted.')
otherwise = True