-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3180 from tertsdiepraam/long_help_file
Create `help_section` macro and use it for `numfmt`
- Loading branch information
Showing
7 changed files
with
302 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# base32 | ||
|
||
## Usage | ||
``` | ||
base32 [OPTION]... [FILE] | ||
``` | ||
|
||
## About | ||
|
||
encode/decode data and print to standard output | ||
With no FILE, or when FILE is -, read standard input. | ||
|
||
The data are encoded as described for the base32 alphabet in RFC | ||
4648. When decoding, the input may contain newlines in addition | ||
to the bytes of the formal base32 alphabet. Use --ignore-garbage | ||
to attempt to recover from any other non-alphabet bytes in the | ||
encoded stream. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# base64 | ||
|
||
## Usage | ||
``` | ||
base64 [OPTION]... [FILE] | ||
``` | ||
|
||
## About | ||
|
||
encode/decode data and print to standard output | ||
With no FILE, or when FILE is -, read standard input. | ||
|
||
The data are encoded as described for the base64 alphabet in RFC | ||
3548. When decoding, the input may contain newlines in addition | ||
to the bytes of the formal base64 alphabet. Use --ignore-garbage | ||
to attempt to recover from any other non-alphabet bytes in the | ||
encoded stream. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<!-- spell-checker:ignore N'th M'th --> | ||
# numfmt | ||
|
||
## Usage | ||
``` | ||
numfmt [OPTION]... [NUMBER]... | ||
``` | ||
|
||
## About | ||
|
||
Convert numbers from/to human-readable strings | ||
|
||
## Long Help | ||
|
||
UNIT options: | ||
none no auto-scaling is done; suffixes will trigger an error | ||
|
||
auto accept optional single/two letter suffix: | ||
|
||
1K = 1000, 1Ki = 1024, 1M = 1000000, 1Mi = 1048576, | ||
|
||
si accept optional single letter suffix: | ||
|
||
1K = 1000, 1M = 1000000, ... | ||
|
||
iec accept optional single letter suffix: | ||
|
||
1K = 1024, 1M = 1048576, ... | ||
|
||
iec-i accept optional two-letter suffix: | ||
|
||
1Ki = 1024, 1Mi = 1048576, ... | ||
|
||
FIELDS supports cut(1) style field ranges: | ||
N N'th field, counted from 1 | ||
N- from N'th field, to end of line | ||
N-M from N'th to M'th field (inclusive) | ||
-M from first to M'th field (inclusive) | ||
- all fields | ||
Multiple fields/ranges can be separated with commas | ||
|
||
FORMAT must be suitable for printing one floating-point argument '%f'. | ||
Optional quote (%'f) will enable --grouping (if supported by current locale). | ||
Optional width value (%10f) will pad output. Optional zero (%010f) width | ||
will zero pad the number. Optional negative values (%-10f) will left align. | ||
Optional precision (%.1f) will override the input determined precision. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.