From 4a96feb36b0880c7b6fa7ca8477a81ed31841395 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Tue, 18 Apr 2023 16:42:46 +0200 Subject: [PATCH] docs: document fmt in GNU extensions --- docs/src/extensions.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/src/extensions.md b/docs/src/extensions.md index 3e84f70d802..7aaf9db14fb 100644 --- a/docs/src/extensions.md +++ b/docs/src/extensions.md @@ -43,3 +43,10 @@ therefore welcomed. `cut` can separate fields by whitespace (Space and Tab) with `-w` flag. This feature is adopted from [FreeBSD](https://www.freebsd.org/cgi/man.cgi?cut). + +## `fmt` + +`fmt` has additional flags for prefixes: `-P/--skip-prefix`, `-x/--exact-prefix`, and +`-X/--exact-skip-prefix`. With `-m/--preserve-headers`, an attempt is made to detect and preserve +mail headers in the input. `-q/--quick` breaks lines more quickly. And `-T/--tab-width` defines the +number of spaces representing a tab when determining the line length.