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

🐛 Platform becomes `None` if `--platform` option is given after command #3

Closed shnizzedy closed 3 years ago

shnizzedy commented 3 years ago

Describe the bug

 Traceback (most recent call last):
  File "/share/█████████/apps/conda/bin/cpac", line 8, in <module>
    sys.exit(run())
  File "/share/█████████/apps/conda/lib/python3.7/site-packages/cpac/__main__.py", line 310, in run
    main(sys.argv)
  File "/share/█████████/apps/conda/lib/python3.7/site-packages/cpac/__main__.py", line 290, in main
    Backends(**arg_vars).run(
  File "/share/█████████/apps/conda/lib/python3.7/site-packages/cpac/backends/__init__.py", line 27, in Backends
    }[platform](**kwargs)
KeyError: None 

To Reproduce Run cpac run with --platform option after run.

Expected behavior

--platform option is respected or a message tells the user where to use the --platform option.

Versions

Additional context Related: #2