Skip to content

Make options consistent across CLI sub-commands #403

@john-h-kastner-aws

Description

@john-h-kastner-aws

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 --policies and -p options.

  • authorize accepts only the long option --policies for the policies file. The short option -p specifies the principal.
  • evaluate does not accept a policy file, instead reading expression from an argument, but does use the short option -p for the principal.
  • validate accepts the long option --policies or the short options -p for policies.
  • check-parse accepts --policies, -p, or policy text from standard input.
  • link accepts --policies-file or -p.
  • format accepts 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestThis issue requets a substantial new featuregood-first-issueGood 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions