Merge #1161: M0.9: --help and -h after a figcraft-cli subcommand print the usage (#1155) (@switch87)

This commit is contained in:
bflatastic
2026-10-24 09:16:07 +07:00
4 changed files with 76 additions and 10 deletions
+3 -1
View File
@@ -4,7 +4,9 @@ FigCraft without a window: inspect, export, convert and render documents, run co
commands, serve MCP and measure performance. Build it with
`cargo build --release -p figcraft-cli` (binary `target/release/figcraft-cli`).
Bad arguments print usage and exit with code 2; failures exit with 1. The CLI never panics on input.
`figcraft-cli --help` (or `-h`, or `help`) prints usage on stdout and exits with 0, and so does
`--help` or `-h` after a subcommand (`figcraft-cli mcp --help`). Bad arguments print usage and exit
with code 2; failures exit with 1. The CLI never panics on input.
## Fonts