Skip to content

Conversation

@ivan-aksamentov
Copy link
Member

This follows color_eyre conventions and uses different sections to make error message prettier.

I think that chaining .arg() and then adding -k with .args() does not necessarily actually adds -k, but I don't know how to check it. So I opted for manually constructing all-in-one array of args, which I pass using a single .args() call. This also allow us to print the full command to the user and inspect it during debugging.

Also refactored and simplified things a little.

Image

This follows `color_eyre` conventions and uses different sections to make error message prettier.

I think that chaining `.arg()` and then adding `-k` with `.args()` does not necessarily actually adds `-k`, but I don't know how to check it. So I opted for manually constructing all-in-one array of args, which I pass using a single `.args()` call. This also allow us to print the full command to the user and inspect it during debugging.

Also refactored and simplified things a little.

![Image](https://github.com/user-attachments/assets/726a580f-c7f2-4e59-8f45-50089ab8125e)
@ivan-aksamentov ivan-aksamentov merged commit 4ffb3dc into alignment-kernel-polish Jan 23, 2025
14 checks passed
@ivan-aksamentov ivan-aksamentov deleted the suggestion-2 branch January 23, 2025 11:02
ivan-aksamentov added a commit that referenced this pull request Jan 23, 2025
After #115 where I tested mmseqs errors, I forgot to flip back the `--threads` arg to the correct spelling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants