other: change group -> group_processes for consistency between config and command-line args (#1344)

* other: change group -> group_processes to match config file name

* update docs

* update changelog
This commit is contained in:
Clement Tsang 2023-12-01 07:46:22 +00:00 committed by GitHub
parent 66b58e49d2
commit 074b205a82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 5 deletions

View File

@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [#1276](https://github.com/ClementTsang/bottom/pull/1276): Add GPU process info.
### Changes
- [#1344](https://github.com/ClementTsang/bottom/pull/1344): Change the `group` command line argument to `group_processes` for consistency with the config file option.
### Bug Fixes
- [#1314](https://github.com/ClementTsang/bottom/pull/1314): Fix fat32 mounts not showing up in macOS.

View File

@ -23,7 +23,7 @@ see information on these flags by running `btm -h`, or run `btm --help` to displ
| --enable_gpu | Enable collecting and displaying GPU usage. |
| -e, --expanded | Expand the default widget upon starting the app. |
| -f, --fahrenheit | Sets the temperature type to Fahrenheit. |
| -g, --group | Groups processes with the same name by default. |
| -g, --group_processes | Groups processes with the same name by default. |
| -a, --hide_avg_cpu | Hides the average CPU usage. |
| --hide_table_gap | Hides spacing between table headers and entries. |
| --hide_time | Hides the time scale. |

View File

@ -167,9 +167,9 @@ pub fn build_app() -> Command {
.help("Uses a dot marker for graphs.")
.long_help("Uses a dot marker for graphs as opposed to the default braille marker.");
let group = Arg::new("group") // TODO: Rename this to something like "group_process", would be "breaking" though.
let group_processes = Arg::new("group_processes")
.short('g')
.long("group")
.long("group_processes")
.action(ArgAction::SetTrue)
.help("Groups processes with the same name by default.")
.long_help("Groups processes with the same name by default.");
@ -432,7 +432,7 @@ use CPU (3) as the default instead.
default_widget_type,
disable_click,
dot_marker,
group,
group_processes,
hide_avg_cpu,
hide_table_gap,
hide_time,

View File

@ -207,7 +207,7 @@ pub fn build_app(
let expanded_upon_startup = is_flag_enabled!(expanded_on_startup, matches, config);
// For processes
let is_grouped = is_flag_enabled!("group", group_processes, matches, config);
let is_grouped = is_flag_enabled!(group_processes, matches, config);
let is_case_sensitive = is_flag_enabled!(case_sensitive, matches, config);
let is_match_whole_word = is_flag_enabled!(whole_word, matches, config);
let is_use_regex = is_flag_enabled!(regex, matches, config);