From: Plom Heller Date: Sat, 1 Aug 2026 05:06:35 +0000 (+0200) Subject: Improve usage message on ITEM_ID. X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/%7B%7Bprefix%7D%7D/todos?a=commitdiff_plain;h=HEAD;p=bricksplom Improve usage message on ITEM_ID. --- diff --git a/bricksplom.py b/bricksplom.py index d876aba..0169813 100755 --- a/bricksplom.py +++ b/bricksplom.py @@ -865,14 +865,17 @@ def main( add_abbreviable_table_arg() hint_qmark = f'use "{ARG_Q_MARK}" to list options for chosen table' hint_ldraw = 'allowed: ' + ', '.join(sorted(list(LDRAW_MODES))) + arg_match = '--match' + arg_item_id = 'ITEM_ID' parser.add_argument( - 'item_id', - nargs='?', metavar='ITEM_ID') + arg_item_id.lower(), + nargs='?', metavar=arg_item_id, + help=f'shortcut to "{arg_match} {PARAM_Q_ID}{arg_item_id}"') parser.add_argument( '-f', '--format', action='store', help=hint_qmark, default='default') parser.add_argument( - '-m', '--match', + '-m', arg_match, action='store', help=hint_qmark, default='') parser.add_argument( '-s', '--sort',