Pre-submission checks
What's the problem this feature will solve?
Running zizmor without any arguments currently produces a clap required argument error.
In practice, I would assume that the most common local invocations are zizmor . from either a repository root, root/.github/, or root/.github/workflows. This is a small paper cut that adds friction to the most common use case, in particular for new users.
Since zizmor is a single-purpose command (i.e. it has no subcommands), there's no ambiguity about what the user wants when they type zizmor. Users who want to learn more will type zizmor --help.
Describe the solution you'd like
Check the current working directory by default when the inputs argument is omitted. In other words, change inputs from #[arg(required = true)] to #[arg(default_value = ".")] so that bare zizmor behaves identically to zizmor ..
Additional context
This proposal would behave similarly to several existing tools and linters (e.g., actionlint, flake8, ruff check/format), which default to the current working directory when no input is explicitly provided.
Pre-submission checks
What's the problem this feature will solve?
Running
zizmorwithout any arguments currently produces a clap required argument error.In practice, I would assume that the most common local invocations are
zizmor .from either a repository root,root/.github/, orroot/.github/workflows. This is a small paper cut that adds friction to the most common use case, in particular for new users.Since
zizmoris a single-purpose command (i.e. it has no subcommands), there's no ambiguity about what the user wants when they typezizmor. Users who want to learn more will typezizmor --help.Describe the solution you'd like
Check the current working directory by default when the
inputsargument is omitted. In other words, changeinputsfrom#[arg(required = true)]to#[arg(default_value = ".")]so that barezizmorbehaves identically tozizmor ..Additional context
This proposal would behave similarly to several existing tools and linters (e.g.,
actionlint,flake8,ruff check/format), which default to the current working directory when no input is explicitly provided.