mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 01:05:07 +00:00

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).
23 lines
474 B
Markdown
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 -->
|