CLI (fixes #5) #7
Conversation
… a command specific usage message.
Referencing issue #5 |
This is amazing, thank you so much!
Can you give an example of what this implementation would look like?
This is good for now, but maybe later we could refactor to do the arguments checking at the function level and avoid having to sync changes in the lib with Would you mind adding some tests for this new feature? I'll open another issue. |
Here is my proposed CLI for this package.
I envisioned a similar setup to samtools where the interface is split up into specific commands for each function in the package (
bionode-seq reverse...
,bionode-seq translate...
, etc.).I'm not sure if this is the best way to organize the interface, any thoughts or opinions would be greatly appreciated.
Currently, the input is a ndjson file where each line will be sent to the specified function.
One potential downfall of this organization is when one would like to perform different functions on different records in the same file.
I could set this up such that the function to be performed is included in each line of the input file so that one could easily perform different functions within the same file.
If anyone can think of a more elegant way to get the arguments from the functions, I am open to suggestions.
The only way that I could think of doing it is with the
commands
object, but this could be a pain to update as the interface to the functions change.