Skip to content

Commit

Permalink
SM-774: Write Help Text to 'stderr' When No Args Are Provided (#190)
Browse files Browse the repository at this point in the history
* SM-774: Write help text to stderr on no args

* SM-774: Add styling to output change

* SM-774: Update the changelog
  • Loading branch information
coltonhurst authored Sep 6, 2023
1 parent 766c85b commit 19d7f2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/bws/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- Support for shell autocompletion with the `bws completions` command (#103)
- When running `bws` with no args, the help text is now printed to `stderr` instead of `stdout` to be consistent with `bws subcommand` behavior (#190)

## [0.3.0] - 2023-07-26

Expand Down
2 changes: 1 addition & 1 deletion crates/bws/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ async fn process_commands() -> Result<()> {

let Some(command) = cli.command else {
let mut cmd = Cli::command();
cmd.print_help()?;
eprintln!("{}", cmd.render_help().ansi());
return Ok(());
};

Expand Down

0 comments on commit 19d7f2f

Please sign in to comment.