Skip to content

Commit

Permalink
health: Separate 'languages' category from 'all'
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis committed Aug 31, 2022
1 parent 8ef984e commit f9965cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions helix-term/src/health.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,15 +308,15 @@ fn probe_treesitter_feature(lang: &str, feature: TsFeature) -> std::io::Result<(

pub fn print_health(health_arg: Option<String>) -> std::io::Result<()> {
match health_arg.as_deref() {
Some("all") => languages_all()?,
Some("languages") => languages_all()?,
Some("clipboard") => clipboard()?,
Some(lang) => language(lang.to_string())?,
None => {
None | Some("all") => {
general()?;
clipboard()?;
writeln!(std::io::stdout().lock())?;
languages_all()?;
}
Some(lang) => language(lang.to_string())?,
}
Ok(())
}
3 changes: 2 additions & 1 deletion helix-term/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ FLAGS:
-h, --help Prints help information
--tutor Loads the tutorial
--health [CATEGORY] Checks for potential errors in editor setup
CATEGORY can be a language or one of 'clipboard' or 'all'
CATEGORY can be a language or one of 'clipboard', 'languages'
or 'all'. 'all' is the default if not specified.
-g, --grammar {{fetch|build}} Fetches or builds tree-sitter grammars listed in languages.toml
-c, --config <file> Specifies a file to use for configuration
-v Increases logging verbosity each use for up to 3 times
Expand Down

0 comments on commit f9965cf

Please sign in to comment.