home
·
contact
·
privacy
projects
/
bricksplom
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d186fe6
)
Improve usage message on ITEM_ID.
master
author
Plom Heller
<plom@plomlompom.com>
Sat, 1 Aug 2026 05:06:35 +0000
(07:06 +0200)
committer
Plom Heller
<plom@plomlompom.com>
Sat, 1 Aug 2026 05:06:35 +0000
(07:06 +0200)
bricksplom.py
patch
|
blob
|
history
diff --git
a/bricksplom.py
b/bricksplom.py
index d876abaf168e60e2c434f8b079533a19de0e17e0..0169813ab81e33d02cfb338dc65825cf224ac600 100755
(executable)
--- 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)))
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(
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(
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',
action='store', help=hint_qmark, default='')
parser.add_argument(
'-s', '--sort',