Allow displaying the result of an operation only.

This concerns the 'representation' and 'properties' modes.

Set the environment variable 'UTF8UTIL_RESULT_ONLY' to any value to
display the result only.

The goal is to achieve consistent usage in scripts.
This commit is contained in:
Saleem Edah-Tally
2023-11-18 21:46:44 +01:00
parent 6f8da19904
commit 45c5877d22
3 changed files with 243 additions and 31 deletions

View File

@@ -51,6 +51,8 @@ This project links to the [utf8proc](https://github.com/JuliaStrings/utf8proc) l
-h, --help: show this message
The input can be piped in or read from stdin. Pass in a single character for simplicity.
If the environment variable 'UTF8UTIL_RESULT_ONLY' is set, only the result is printed
on stdout.
---
$ utf8util properties --help
This operational mode displays properties of the first identified codepoint.
@@ -67,10 +69,12 @@ This project links to the [utf8proc](https://github.com/JuliaStrings/utf8proc) l
-h, --help: show this message
The input can be piped in or read from stdin. Pass in a single character for simplicity.
If the environment variable 'UTF8UTIL_RESULT_ONLY' is set, only the result is printed
on stdout.
---
$ utf8util about
Author: Saleem Edah-Tally [Surgeon, Hobbyist developer]
Version: 1
Version: 2
License: CeCILL
---