Skip to content

Commit

Permalink
Fix documentation of --utf-force in README and --help.
Browse files Browse the repository at this point in the history
  • Loading branch information
purinchu committed Sep 18, 2021
1 parent 480b421 commit 97726f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ log_level = "DEBUG"
#### Command line options

```text
usage: btop [-h] [-v] [-/+t] [--utf-foce] [--debug]
usage: btop [-h] [-v] [-/+t] [--utf-force] [--debug]
optional arguments:
-h, --help show this help message and exit
Expand All @@ -485,7 +485,7 @@ optional arguments:
-t, --tty_on force (ON) tty mode, max 16 colors and tty friendly graph symbols
+t, --tty_off force (OFF) tty mode
-p --preset <id> start with preset, integer value between 0-9
--utf-foce force start even if no UTF-8 locale was detected
--utf-force force start even if no UTF-8 locale was detected
--debug start in DEBUG mode: shows microsecond timer for information collect
and screen draw functions and sets loglevel to DEBUG
```
Expand Down
4 changes: 2 additions & 2 deletions src/btop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@ void argumentParser(const int& argc, char **argv) {
for(int i = 1; i < argc; i++) {
const string argument = argv[i];
if (is_in(argument, "-h", "--help")) {
cout << "usage: btop [-h] [-v] [-/+t] [--utf-foce] [--debug]\n\n"
cout << "usage: btop [-h] [-v] [-/+t] [--utf-force] [--debug]\n\n"
<< "optional arguments:\n"
<< " -h, --help show this help message and exit\n"
<< " -v, --version show version info and exit\n"
<< " -lc, --low-color disable truecolor, converts 24-bit colors to 256-color\n"
<< " -t, --tty_on force (ON) tty mode, max 16 colors and tty friendly graph symbols\n"
<< " +t, --tty_off force (OFF) tty mode\n"
<< " -p --preset <id> start with preset, integer value between 0-9\n"
<< " --utf-foce force start even if no UTF-8 locale was detected\n"
<< " --utf-force force start even if no UTF-8 locale was detected\n"
<< " --debug start in DEBUG mode: shows microsecond timer for information collect\n"
<< " and screen draw functions and sets loglevel to DEBUG\n"
<< endl;
Expand Down

0 comments on commit 97726f3

Please sign in to comment.