Skip to content

Pass policy-id as a CLI argument, not an option flag #432

@gvauter

Description

@gvauter

Is your feature request related to a problem? Please describe.

Currently the generate and scan commands expect the target policy ID to be passed via the --policy-id CLI flag. However, given policy ID is a required argument (vs an optional flag) for these commands, a more canonical pattern would be to accept the policy ID as a positional argument. In addition, this reduces typing required for the common generate -> scan workflow.

complyctl scan --policy-id cis-fedora-server

Describe the solution you'd like

Policy ID should be passed as a CLI argument, not a flag.

complyctl scan cis-fedora-server

Describe alternatives you've considered
Leave as is today.

Additional context

A few industry precedents:

Tool Pattern Example
kubectl Positional kubectl get pods my-pod
docker Positional docker run nginx
git Positional git checkout main

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Ready 🚀

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions