Skip to content

Set the bin_name for the CLI to rubyfmt#793

Merged
reese merged 1 commit intotrunkfrom
reese-bin-name
Jan 16, 2026
Merged

Set the bin_name for the CLI to rubyfmt#793
reese merged 1 commit intotrunkfrom
reese-bin-name

Conversation

@reese
Copy link
Collaborator

@reese reese commented Jan 16, 2026

This is a mega nit but when you run rubyfmt -h, the usage instructions says Usage: rubyfmt-main instead of rubyfmt because clap defaults to the crate name (and we have the binary in rubyfmt-main and the library in rubyfmt). This sets the CLI's bin_name to rubyfmt so that it now says

% cargo run -- -h
Rubyfmt CLI

Usage: rubyfmt [OPTIONS] [include-paths]...

@reese reese merged commit a0d6efe into trunk Jan 16, 2026
8 checks passed
@reese reese deleted the reese-bin-name branch January 16, 2026 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants