Skip to content

Commit 36fc4ca

Browse files
author
Clement Champetier
committed
sam ls: do not print details of sequences in case of --script option
1 parent 03ad407 commit 36fc4ca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

applications/sam/sam_ls.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,10 @@ def _printItem(self, item, args, level):
185185
indentTree += '|__ '
186186

187187
# display
188-
toPrint = detailed + filePath + detailedSequence
188+
toPrint = detailed + filePath
189+
if not args.script:
190+
toPrint += detailedSequence
191+
189192
# if first level or no tree formatting
190193
if level == 0 or args.script:
191194
puts(toPrint.format())

0 commit comments

Comments
 (0)