Closed fcharih closed 4 years ago
Thanks for the issue @flexplicateur! Constellation uses docopt
here to handle command line arguments, and I got the docopt syntax slightly wrong such that the only argument it accepted is the string "args". I've pushed a fix (https://github.com/constellation-rs/constellation/pull/52/commits/25445a119d018341100f9af6d68f2cf42043b6d5) - a new version will be published in a couple of hours once it passes CI.
Great! Thanks!
And regarding using cargo deploy
with multiple binaries – I've pushed a fix https://github.com/constellation-rs/constellation/pull/53 so that this should work:
cargo deploy --bin extractor-distrib 127.0.0.1:8888 -- -f sequences.fasta -o output.hsp
Great work @alecmocatta . Thank you for this incredible library.
Hi,
I have a Rust project with multiple binaries in a
src/bin
directory. I wish to run constellation with a specific executable compiled fromsrc/bin/extractor-distrib.rs
. My program takes arguments.I cannot use
cargo deploy
directly because it doesn't know which binary to use, and I getWhen I try to run my program with deploy directly, my program is executed, but doesn't do anything without arguments.
... but it won't let me add argument:
Is there a way I can pass arguments to my program by running deploy directly. I figure the issue might jump into your face without much thought.
Cheers, Francois