# Fix usage.unknown_flag

usage.unknown_flag
Recorded exits: 2 (usage). [1]

docs_rev: 6fd264d5335b1cda
applies_to: source at 4aca9a8; agc >=0.3.0
verified: 4aca9a8
Generated from: fix/usage.unknown_flag, reference/cli-reference, reference/the-json-envelope, reference/error-code-catalog

## Steps

Cause: A flag the command doesn't take, often a typo (`--nmae`). Nothing was done.
Next action: Run it again with `data.closest`, or without the flag.
[2]

Cause: The command was malformed: a missing argument, a bad value, a flag the command doesn't take (`usage.unknown_flag`), an invalid `agentcloud.toml`.
Next action: Read `agc help <command>`, fix the invocation or the manifest.
[4]

Cause: `any`
Next action: `‹label›` has no flag ‹bad›. The closest it takes is ‹near›. / `‹label›` has no flag ‹bad›. | Run it again with ‹near› in place of ‹bad›. Nothing was done. / Take ‹bad› out‹…\ | (it takes no flags of its own)›. Nothing was done. | flags.ts:107
[5]

## Errors

See the cited canonical pages for errors.

## Not available yet

Availability follows the cited sources; this answer does not establish additional capabilities.

## Sources

[1] [fix/usage.unknown_flag — Reference](/docs/fix/usage.unknown_flag.md#reference) (shipped; source at 4aca9a8; 4aca9a8)
[2] [reference/cli-reference — Errors](/docs/reference/cli-reference.md#errors) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[3] [reference/cli-reference — Reference](/docs/reference/cli-reference.md#reference) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[4] [reference/the-json-envelope — Exit codes](/docs/reference/the-json-envelope.md#exit-codes) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[5] [reference/error-code-catalog — Reference](/docs/reference/error-code-catalog.md#reference) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)

## Known issues

- [reference/cli-reference](/docs/reference/cli-reference/known-issues.md)
- [reference/cli-reference](/docs/reference/cli-reference/known-issues.md)
- [reference/the-json-envelope](/docs/reference/the-json-envelope/known-issues.md)
- [reference/error-code-catalog](/docs/reference/error-code-catalog/known-issues.md)

<!-- feedback:start -->
---
Wrong, outdated or unclear? Run `agc feedback docs "fix/usage.unknown_flag: <what is wrong>; error usage.unknown_flag" --body <file>` with the sentence quoted in the file. No code or app data is sent.
<!-- feedback:end -->
