From 74043b37f1827b17398e1c90869bbb5f7d6721ba Mon Sep 17 00:00:00 2001 From: Chrilleweb Date: Wed, 4 Feb 2026 17:27:22 +0100 Subject: [PATCH] docs: moved -y flag up --- docs/configuration_and_flags.md | 52 +++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 22 deletions(-) diff --git a/docs/configuration_and_flags.md b/docs/configuration_and_flags.md index 212d490..27a546a 100644 --- a/docs/configuration_and_flags.md +++ b/docs/configuration_and_flags.md @@ -295,6 +295,26 @@ Usage in the configuration file: } ``` +### `-y, --yes` + +Run non-interactively and automatically accept all prompts with "yes". +Useful for automation when you want to auto-create missing files or apply fixes without manual confirmation. +Cannot be combined with `--ci` (use one or the other). + +Example usage: + +```bash +dotenv-diff --compare --fix --yes +``` + +Usage in the configuration file: + +```json +{ + "yes": true +} +``` + ## File Scanning Flags ### `--files ` @@ -600,17 +620,25 @@ Detects inconsistent naming patterns in environment variable keys (enabled by de Use this to maintain consistent naming conventions across your environment variables and avoid confusion. -Usage in the CLI: +Example usage: ```bash dotenv-diff --inconsistent-naming-warnings ``` +Usage in the configuration file: + +```json +{ + "inconsistentNamingWarnings": true +} +``` + ### `--no-inconsistent-naming-warnings` Disable inconsistent naming pattern warnings. -Usage in the CLI: +Example usage: ```bash dotenv-diff --no-inconsistent-naming-warnings @@ -696,23 +724,3 @@ Usage in the configuration file: "only": ["missing", "duplicate"] } ``` - -### `-y, --yes` - -Run non-interactively and automatically accept all prompts with "yes". -Useful for automation when you want to auto-create missing files or apply fixes without manual confirmation. -Cannot be combined with `--ci` (use one or the other). - -Example usage: - -```bash -dotenv-diff --compare --fix --yes -``` - -Usage in the configuration file: - -```json -{ - "yes": true -} -```