Skip to content

Commit

Permalink
Add brief to menu and command description
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemartinlogan committed Feb 10, 2024
1 parent dc7edcb commit c1a9555
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jarvis_util/util/argparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,8 @@ def _print_menu_help(self, only_usage=False, alias=None, max_len=100):
for alias_str, alias_toks in self.menu['aliases']:
print(f'{title}: {self.binary_name} {alias_str}')
title = 'ALIAS'
print(self.menu['msg'])
if self.menu['msg'] is not None:
print(f'BRIEF: {self.menu["msg"]}')
print()
return
else:
Expand All @@ -607,7 +608,7 @@ def _print_menu_help(self, only_usage=False, alias=None, max_len=100):
print(f'{title}: {self.binary_name} {menu_str} {pos_args}')
title = 'ALIAS'
if self.menu['msg'] is not None:
print(self.menu['msg'])
print(f'BRIEF: {self.menu["msg"]}')
print()
if only_usage:
return
Expand Down

0 comments on commit c1a9555

Please sign in to comment.