Usage: fy-ypath [options] [args] General options: --help, -h : Display this help message --version, -v : Display libfyaml version --quiet, -q : Quiet operation (default false) --debug-level, -d : Set debug level (default 3) --color, -C : Color output (on, off, auto) (default auto) --visible, -V : Make whitespace and linebreaks visible (default false) --dry-run : Do not parse/emit Diagnostic options: --disable-diag : Disable diag error module --enable-diag : Enable diag error module --show-diag : Show diag option (source, position, type, module) --hide-diag : Hide diag option (source, position, type, module) Parser options: --include, -I : Add directory to include path (default ) --json, -j : JSON input mode (no, force, auto) (default auto) --resolve, -r : Perform anchor and merge key resolution (default false) --yaml-1.1 : Enable YAML 1.1 --yaml-1.2 : Enable YAML 1.2 --yaml-1.3 : Enable YAML 1.3 --follow, -l : Follow aliases when using paths (default false) --sloppy-flow-indentation : Enable sloppy indentation in flow mode (default false) --prefer-recursive : Prefer recursive instead of iterative algorithms (default false) --ypath-aliases : Use YPATH aliases (default false) --allow-duplicate-keys : Allow duplicate keys (default false) --collect-errors : Collect errors instead of outputting directly (default false) --disable-accel : Disable access accelerators (default false) --disable-buffering : Disable buffering (use unix fd) (default false) --disable-mmap : Disable mmap usage --disable-depth-limit : Disable depth limit (default false) Emitter options: --indent, -i : Set dump indent (default 2) --width, -w : Set dump width (inf for infinite) (default 80) --mode, -m : Output mode (default original) (original, block, flow, flow-oneline, json, json-tp, json-oneline, dejson, pretty, flow-compact, json-compact) --sort, -s : Perform mapping key sort (default false) --comment, -c : Output comments (experimental) (default false) --strip-labels : Strip labels when emitting (default false) --strip-tags : Strip tags when emitting (default false) --strip-doc : Strip document headers and indicators (default false) --strip-empty-kv : Strip keys with empty values (default false) --null-output : Do not generate output --no-ending-newline : Do not generate a final newline --preserve-flow-layout : Preserve layout of single line flow collections --indented-seq-in-map : Indent block sequences in block mappings Input options: --file, -f : Use given file instead of (a leading '>' in the string is treated as literal content) YPATH options: --from, -F : Start from path (default /) --dump-pathexpr : Dump the path expression before the results --noexec : Do not execute the expression Examples: Parse and filter YAML with the ypath expression that results to /foo followed by /bar $ fy-ypath --ypath /foo,bar input.yaml