Update Cargo, changed the CLI flags for search a bit along with the docs to be a bit easier to remember (all caps, change regex option to -R)

This commit is contained in:
ClementTsang 2020-02-04 20:05:07 -05:00
parent a7bca4ec50
commit 41d56d8a9b
3 changed files with 17 additions and 15 deletions

View file

@ -25,8 +25,8 @@ clap = "2.33.0"
crossterm = "0.14"
failure = "0.1.6"
fern = "0.5.9"
futures-timer = "2.0.2"
futures = "0.3.1"
futures-timer = "3.0.1"
futures = "0.3.3"
heim = "0.0.9"
log = "0.4.8"
regex = "1.3.4"

View file

@ -62,15 +62,17 @@ Run using `btm`.
- `-h`, `--help` shows the help screen and exits.
- `-a`, `--avgcpu` enables also showing the average CPU usage in addition to per-core CPU usage.
- `-a`, `--avg_cpu` enables also showing the average CPU usage in addition to per-core CPU usage.
- `-m`, `--dot-marker` uses a dot marker instead of the default braille marker.
- `-c`, `--celsius` displays the temperature type in Celsius. This is the default.
- Temperature units (you can only use one at a time):
- `-f`, `--fahrenheit` displays the temperature type in Fahrenheit.
- `-c`, `--celsius` displays the temperature type in Celsius. This is the default.
- `-k`, `--kelvin` displays the temperature type in Kelvin.
- `-f`, `--fahrenheit` displays the temperature type in Fahrenheit.
- `-k`, `--kelvin` displays the temperature type in Kelvin.
- `-v`, `--version` displays the version number and exits.
@ -84,11 +86,11 @@ Run using `btm`.
- `-g`, `--group` will group together processes with the same name by default (equivalent to pressing `Tab`).
- `-s`, `--case_sensitive` will default to matching case.
- `-S`, `--case_sensitive` will default to matching case.
- `-w`, `--whole` will default to searching for the world word.
- `-W`, `--whole` will default to searching for the world word.
- `-x`, `--regex` will default to using regex.
- `-R`, `--regex` will default to using regex.
when searching processes.

View file

@ -60,13 +60,13 @@ fn main() -> error::Result<()> {
(version: crate_version!())
(author: crate_authors!())
(about: crate_description!())
(@arg AVG_CPU: -a --avgcpu "Enables showing the average CPU usage.")
(@arg AVG_CPU: -a --avg_cpu "Enables showing the average CPU usage.")
(@arg DOT_MARKER: -m --dot_marker "Use a dot marker instead of the default braille marker.")
(@arg DEBUG: -d --debug "Enables debug mode, which will output a log file.")
(@group TEMPERATURE_TYPE =>
(@arg CELSIUS : -c --celsius "Sets the temperature type to Celsius. This is the default option.")
(@arg FAHRENHEIT : -f --fahrenheit "Sets the temperature type to Fahrenheit.")
(@arg KELVIN : -k --kelvin "Sets the temperature type to Kelvin.")
(@arg FAHRENHEIT : -f --fahrenheit "Sets the temperature type to Fahrenheit.")
(@arg CELSIUS : -c --celsius "Sets the temperature type to Celsius. This is the default option.")
)
(@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.")
@ -74,9 +74,9 @@ fn main() -> error::Result<()> {
//(@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 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.")
(@arg WHOLE_WORD: -w --whole "Match whole word when searching by default.")
(@arg REGEX_DEFAULT: -x --regex "Use regex in searching by default.")
(@arg CASE_SENSITIVE: -S --case_sensitive "Match case when searching by default.")
(@arg WHOLE_WORD: -W --whole "Match whole word when searching by default.")
(@arg REGEX_DEFAULT: -R --regex "Use regex in searching by default.")
)
.get_matches();