1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 01:05:07 +00:00
serenity/Base/usr/share/man/man1/fortune.md
Tim Ledbetter 7f99f3bf29 fortune: Use simple formatting when stdout isn't connected to a terminal
This changes the default behavior, so that, by default, color codes,
hyperlinks and additional spacing are only emitted when standard
output is connected to a terminal.

The default coloring behavior can be overridden with the `--color`
option. Valid arguments for this option are: 'always', 'never' and
'auto' (default).
2023-08-06 08:58:00 +02:00

23 lines
474 B
Markdown

## Name
fortune
## Synopsis
```sh
$ fortune [--color when] [path]
```
## Description
Open a fortune cookie, receive a free quote for the day!
## Options
* `--color when`: Chose when to color the output. Valid options are always, never and auto (default). When color is set to auto, color codes will be emitted when stdout is a terminal
## Arguments
* `path`: Path to JSON file with quotes (/res/fortunes.json by default)
<!-- Auto-generated through ArgsParser -->