Replicate the existing CLI experience from clap, but without the stringly-typed
interface.
This pull request makes the following changes:
Switches cargo-pants to use StructOpt and re-structure its bin/ folder layout
StructOpt enables env fallback, so I added the option --ossi-api-key for someone to manually pass it in. This will fall-back to OSSI_API_KEY, which removes the need for the explicit env query.
There should be no significant changes in behavior besides a slightly different --help output when running cargo pants --help and running the raw program now outputs information about the pants subcommand instead of a warning message.
Replicate the existing CLI experience from clap, but without the stringly-typed interface.
This pull request makes the following changes:
bin/
folder layout--ossi-api-key
for someone to manually pass it in. This will fall-back toOSSI_API_KEY
, which removes the need for the explicit env query.There should be no significant changes in behavior besides a slightly different
--help
output when runningcargo pants --help
and running the raw program now outputs information about thepants
subcommand instead of a warning message.