Closed olgabot closed 5 years ago
Hi @olgabot! I think this is happening because of -ignore_abundance True
. To set a boolean flag to true, I think it needs to just be -ignore_abundance
. I think, with low but nonzero confidence, that the error happens because the flag parser believes that True
is a positional argument (not meaningful but a consequence of the parser Reflow uses) and that it is done parsing "options".
Let me know if that helps.
That is correct. This is a quirk in Go's flags package (which we use to parse Reflow flags.) Boolean flags can take the form -flag, -flag=true, or -flag=false, but can not (unlike non-boolean flags) take the form -flag value.
Hello, I'm working on a python package to help with Reflow adoption at Biohub, in particular a
check-batch
command toreflow run
the first line of asamples.csv
from aconfig.json
. The issue is that from thesamples.csv
, I don't know which columns correspond to mandatory or optional flags. So when I build a command to run with Python'ssubprocess
, I can't order the flags as would be needed for the reflow file. In this command, ALL of the flags are there, but since the second flag is-ignore_abundance
(an optional one), the rest don't get read and the program fails.Is there a way to ignore the order of flags and instead read them all? Warmest, Olga