-
Notifications
You must be signed in to change notification settings - Fork 143
Make options consistent across CLI sub-commands #403
Copy link
Copy link
Closed
Labels
feature-requestThis issue requets a substantial new featureThis issue requets a substantial new featuregood-first-issueGood for newcomers. A smaller issue that someone new to the Cedar codebase should be able to tackleGood for newcomers. A smaller issue that someone new to the Cedar codebase should be able to tacklehelp-wantedCommunity help desired. We have not scheduled time to fix this, but think it important.Community help desired. We have not scheduled time to fix this, but think it important.
Metadata
Metadata
Assignees
Labels
feature-requestThis issue requets a substantial new featureThis issue requets a substantial new featuregood-first-issueGood for newcomers. A smaller issue that someone new to the Cedar codebase should be able to tackleGood for newcomers. A smaller issue that someone new to the Cedar codebase should be able to tacklehelp-wantedCommunity help desired. We have not scheduled time to fix this, but think it important.Community help desired. We have not scheduled time to fix this, but think it important.
Category
Other
Describe the feature you'd like to request
The CLI subcommands do not consistently use the same long and short names for options.
For example, most commands take a Cedar policy file as input using the
--policiesand-poptions.authorizeaccepts only the long option--policiesfor the policies file. The short option-pspecifies the principal.evaluatedoes not accept a policy file, instead reading expression from an argument, but does use the short option-pfor the principal.validateaccepts the long option--policiesor the short options-pfor policies.check-parseaccepts--policies,-p, or policy text from standard input.linkaccepts--policies-fileor-p.formataccepts the policies file as a positional argument after any other options, or from standard input if no positional arguments are provided.There may be other ways that the sub-commands are inconsistent.