reflected auto config creation

This commit is contained in:
shilangyu 2020-03-02 22:07:41 +01:00
parent 735038f060
commit 47cc34a8e2
3 changed files with 3 additions and 3 deletions

View File

@ -130,7 +130,7 @@ Run using `btm`.
- `-s`, `--show_disabled_data` will show data entries in the graph legends even if the lines for that entry are disabled.
- `-C`, `--config` takes in a file path leading to a TOML file.
- `-C`, `--config` takes in a file path leading to a TOML file. If doesn't exist, creates one.
### Keybindings

View File

@ -38,7 +38,7 @@ Note some colours may not be compatible with the terminal you are using. For exa
## Default config locations
bottom will check specific locations by default for a config file.
bottom will check specific locations by default for a config file. If no file is found, it will be created.
- For Unix-based systems: `$HOME/.config/bottom/bottom.toml`.
- For Windows: `{FOLDERID_RoamingAppData}\bottom\bottom.toml` (for example, `C:\Users\Clement\AppData\Roaming\bottom\bottom.toml`).

View File

@ -118,7 +118,7 @@ fn get_matches() -> clap::ArgMatches<'static> {
(@arg RATE_MILLIS: -r --rate +takes_value "Sets a refresh rate in milliseconds; the minimum is 250ms, defaults to 1000ms. Smaller values may take more resources.")
(@arg LEFT_LEGEND: -l --left_legend "Puts external chart legends on the left side rather than the default right side.")
(@arg USE_CURR_USAGE: -u --current_usage "Within Linux, sets a process' CPU usage to be based on the total current CPU usage, rather than assuming 100% usage.")
(@arg CONFIG_LOCATION: -C --config +takes_value "Sets the location of the config file. Expects a config file in the TOML format.")
(@arg CONFIG_LOCATION: -C --config +takes_value "Sets the location of the config file. Expects a config file in the TOML format. If doesn't exist, creates one.")
//(@arg BASIC_MODE: -b --basic "Sets bottom to basic mode, not showing graphs and only showing basic tables.") // TODO: [FEATURE] Min mode
(@arg GROUP_PROCESSES: -g --group "Groups processes with the same name together on launch.")
(@arg CASE_SENSITIVE: -S --case_sensitive "Match case when searching by default.")