-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sam ls: fixed command results when combine -d/-s/-f options #579
Conversation
if args.directories and itemType == sequenceParser.eTypeFolder: | ||
toPrint = True | ||
# sam-ls -f | ||
if args.files and itemType == sequenceParser.eTypeFile: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
elif
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No because we would like to combine these options.
For example:
sam ls -df
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but this is still true in this configuration.
It can only be true for one solution, as itemType
has only one value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right: it is working because itemType has only one value.
I overwrite the corresponding commit: f508ca9
In a folder with directories and sequences: * Before this commit: * sam ls -d: only directories * sam ls -s: only sequences * sam ls -ds: nothing * After this commit: * sam ls -d: only directories * sam ls -s: only sequences * sam ls -ds: both directories and sequences
It is necessary to check that only if the item will be printed.
d292666
to
27b6023
Compare
… fix_samLsFilterOptions Conflicts: applications/sam/sam_ls.py
Instead, added a space in the details of each item.
* Instead, added a space. * Almost the same result when displaying, and easier to parse.
No description provided.