Skip to content

Commit ebd1862

Browse files
committed
lsxfel --detail implies --source
1 parent b0b2fa0 commit ebd1862

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

docs/cli.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ The options below are only relevant when inspecting a single run or file.
3333
.. option:: --detail <source-pattern>
3434

3535
Show more detail on the keys and data of the sources selected by a pattern,
36-
in the same formats as ``--source``. Can be used several times.
36+
in the same formats as ``--source``. Can be used several times. Only the
37+
selected sources are shown, unless you also use ``--source``.
3738

3839
This option can make ``lsxfel`` considerably slower.
3940

extra_data/cli/lsxfel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def main(argv=None):
8585
detail_patterns = [p if re.search(r'[*?[]', p) else f'*{p}*'
8686
for p in args.detail]
8787
source_patterns = [p if re.search(r'[*?[]', p) else f'*{p}*'
88-
for p in args.source]
88+
for p in (args.source or args.detail)]
8989

9090
def dc_info(dc: DataCollection):
9191
if source_patterns:

0 commit comments

Comments
 (0)