FCP-INDI / cpac

A convenience wrapper for https://github.com/FCP-INDI/C-PAC that provides a simple command line interface.
https://fcp-indi.github.io/docs/latest/user/cpac
MIT License
4 stars 3 forks source link

🐛 Top-level options given after command aren't parsed correctly. #2

Closed shnizzedy closed 3 years ago

shnizzedy commented 3 years ago

Describe the bug

Giving cpac options (e.g., --platform and --image) after the command (e.g., run, utils), causes those options to be ignored or used incorrectly.

To Reproduce Steps to reproduce the behavior: Take a set of options that works, e.g.,

cpac --platform singularity utils --help

and move the cpac option(s) to the end

cpac utils --help --platform singularity

Expected behavior

The options work the same regardless of placement or message clarifies the expected sequence or grouping of options.

Versions