Changed wording for case match default in flags

This commit is contained in:
ClementTsang 2020-01-28 22:21:31 -05:00
parent 63299afaf0
commit c415dfd88c
2 changed files with 4 additions and 4 deletions

View File

@ -80,7 +80,7 @@ Run using `btm`.
- `-g`, `--group` will group together processes with the same name by default (equivalent to pressing `Tab`).
- `-s`, `--simple_search` will default the search to simple search rather than regex search.
- `-i`, `--case_insensitive` will default to not matching cases when searching processes.
### Keybindings

View File

@ -72,9 +72,9 @@ fn main() -> error::Result<()> {
(@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: -co --config +takes_value "Sets the location of the config file. Expects a config file in the JSON format.")
(@arg BASIC_MODE: -b --basic "Sets bottom to basic mode, not showing graphs and only showing basic tables.")
//(@arg BASIC_MODE: -b --basic "Sets bottom to basic mode, not showing graphs and only showing basic tables.")
(@arg GROUP_PROCESSES: -g --group "Groups processes with the same name together on launch.")
(@arg SEARCH_DEFAULT_USE_SIMPLE: -s --simple_search "Uses a simple case-insensitive string comparison to search processes by default.")
(@arg CASE_INSENSITIVE_DEFAULT: -i --case_insensitive "Do not match case when searching processes by default.")
)
.get_matches();
@ -132,7 +132,7 @@ fn main() -> error::Result<()> {
}
// Set default search method
if matches.is_present("SEARCH_DEFAULT_USE_SIMPLE") {
if matches.is_present("CASE_INSENSITIVE_DEFAULT") {
app.use_simple = true;
}