Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don’t require files with --explain or --generate-shell-completion #937

Merged
merged 1 commit into from
Nov 28, 2022

Conversation

andersk
Copy link
Contributor

@andersk andersk commented Nov 28, 2022

No description provided.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
@@ -15,7 +15,7 @@ use crate::settings::types::{FilePattern, PatternPrefixPair, PerFileIgnore, Pyth
#[command(version)]
#[allow(clippy::struct_excessive_bools)]
pub struct Cli {
#[arg(required = true)]
#[arg(required_unless_present_any = ["explain", "generate_shell_completion"])]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm so bad at clap.

@charliermarsh
Copy link
Member

Thank you!

@charliermarsh charliermarsh merged commit 041d810 into astral-sh:main Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants