diff --git a/CHANGELOG.md b/CHANGELOG.md index 9096fd8..a05eea3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## Unreleased + +### Fixed + +- **`--json` help names a real field**: it said `--json=id,title`, which is refused; Drive results use `name`, so it + now says `--json=id,name`. + ## 0.18.0 — 19.10.2026 ### Added diff --git a/docs/commands.md b/docs/commands.md index 57ac69e..20f8fcd 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -12,7 +12,7 @@ These options apply to the selected profile and current invocation. |---|---| | `-V, --version` | output the version number. | | `--profile ` | explicit Google account profile (alternative to the first word). | -| `--json` | print machine-readable JSON; --json=id,title keeps only those fields. | +| `--json` | print machine-readable JSON; --json=id,name keeps only those fields. | | `--jsonl` | print machine-readable JSON lines. | | `--quiet` | suppress optional diagnostics. | | `--debug` | on failure, show the full error record: cause and stack. | diff --git a/docs/meta.json b/docs/meta.json index d587305..d7c7464 100644 --- a/docs/meta.json +++ b/docs/meta.json @@ -13,6 +13,8 @@ "configuration", "---When something goes wrong---", "troubleshooting", - "security" + "security", + "---Project---", + "changelog" ] } diff --git a/src/program.ts b/src/program.ts index dc03625..31fd640 100644 --- a/src/program.ts +++ b/src/program.ts @@ -81,7 +81,7 @@ export const createProgram = (options: ProgramOptions = {}): Command => { .version(VERSION) .usage(" [options] ") .option("--profile ", "explicit Google account profile (alternative to the first word)") - .option("--json", "print machine-readable JSON; --json=id,title keeps only those fields") + .option("--json", "print machine-readable JSON; --json=id,name keeps only those fields") .option("--jsonl", "print machine-readable JSON lines") .option("--quiet", "suppress optional diagnostics") .option("--debug", "on failure, show the full error record: cause and stack")