USAGE:(1)
β¨ NAME β¨
okay so bestie, this is the manual page for usage: β aka pyaml, your new fave lil YAML prettifier π the whole invocation vibe is:
usage: pyaml [-h] [-r] [-o file-path] [-w chars] [-v N[/M][g]] [-l] [-q]
no cap, that's the whole personality right there π
π DESCRIPTION π
okay so, the full shape of it:
usage: pyaml [-h] [-r] [-o file-path] [-w chars] [-v N[/M][g]] [-l] [-q]
[path ...]
what it does: Process and dump prettified YAML to stdout. literally that's it, that's the whole job, and it ate π«Ά
πΈ positional arguments: πΈ
pathβ the path(s) to YAML you want read, bestie. if it's default/empty, it just uses stdin like a chill lil ghost π» and if you pass multiple paths, it'll output YAML documents from each one, in the same order. no shuffling, no chaos, order is preserved, periodt.
β¨ options: β¨
-h,--helpβ show this help message and exit. the classic, the icon, the one we all press first π-r,--replaceβ Replace specified YAML file(s) with prettified version in-place. glow-up directly on the file, no copies left behind π-o,--out-file file-pathβ Write output to specified file instead of standard output. like, put it somewhere specific instead of yelling it at the terminal π-w,--width charsβ Max line width hint to pass to pyyaml for the dump. Only used to format scalars and collections (e.g. lists). so it's a hint, not a vibe check β it only matters for scalars and collections like lists π§-v,--vspacing N[/M][g]β Custom thresholds for when to add vertical spacing (empty lines), to visually separate items in overly long YAML lists/mappings.
"long" here means both >split-lines in line-length AND has >split-count items. the value has the N[/M][g] format, and the default is something like 40/2. lowkey a whole system but it's giving organized β¨
- N = min number of same-indent lines in a section to split.
- M = min count of values in a list/mapping to split.
gcan be added to clump single-line values at the top of such lists/maps.sto split all-onliner blocks of values.
values examples, fr fr: 20g, 5/1g, 60/4, gs, 10.
-l,--linesβ Read input as a list of\0(ascii null char) or newline-separated json/yaml "lines", common with loggers or other incremental data dumps.
Each input entry will be exported as a separate YAML document (after ---). and bestie, Empty or whitespace-only input entries are skipped without errors β no drama, no complaints, it just moves on π
-q,--quietβ Disable sanity-check on the output and suppress stderr warnings. shhh mode π€«
π¦ that awkward lil bit π¦
[path ...]
and also, iconic behaviour:
pyaml: error: unrecognized arguments: --version
not the --version erasure π there's no version flag in this lineup, so don't come for it β it will simply tell you it doesn't recognize the argument.
π SEE ALSO π
The full documentation for usage: is maintained as a Texinfo manual. If the info and usage: programs are properly installed at your site, the command
info usage:
should give you access to the complete manual. go read it, it's giving lore π
and that's a wrap, bestie π this page comes to you courtesy of the source/version line <code>usage: pyaml [-h] [-r] [-o file...</code> dated March 2026, manual section USAGE:(1) β she's serving documentation realness, slay πβ¨
π¦ where this page comes from
- fedora 43: python3-pretty-yaml 26.2.1-1.fc43 Β· WTFPL
- fedora 44: python3-pretty-yaml 26.2.1-1.fc44 Β· WTFPL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms