d4-format icon indicating copy to clipboard operation
d4-format copied to clipboard

Fix --resolution option in `d4tools plot`

Open kojix2 opened this issue 10 months ago • 1 comments

Hi

I have recently tried this tool again since the pull requests were merged. It is very fast to create d4 format files using mosdepth.

I was using the plot subcommand of d4tools and noticed that the --resolution option is ignored.

cargo build
 ./target/debug/d4tools plot --resolution 32x12 d4tools/test/data/input.d4 input.d4.svg --region 1

Actual output

error: Found argument 'input.d4.svg' which wasn't expected, or isn't valid in this context

USAGE:
    plot <input-file> <output-file> --region <chr[:start[-end]]> --resolution

For more information try --help

Expected output

input d4

I think the reason for this is that value_name is not specified and the option is set to take no arguments.

Thank you.

kojix2 avatar Jan 25 '25 06:01 kojix2

thanks! does this fix the issue for you?

brentp avatar Jan 25 '25 16:01 brentp