sul-dlss / sdr-client

SDR API client (in Ruby)
https://sul-dlss.github.io/sdr-api/
Other
0 stars 1 forks source link

[SPIKE] Use thor library to build SDR CLI #193

Closed mjgiarlo closed 2 years ago

mjgiarlo commented 2 years ago

The SDR CLI is currently a rough draft and has some rough edges worth smoothing out. In particular: that we have to provide flags in a certain order. Namely: sdr --service-url http://whatever/ update --collection druid:foo druid:bar

The CLI enforces this order because that first --service-url flag is parsed out before the command-specific flags and args are parsed. Rewrite the CLI (using Thor vs. ruby's optionparser) to clean this up.