Skip to content

Commit

Permalink
Fix CLI name in --version (#704)
Browse files Browse the repository at this point in the history
The default is the package name which is `magika-cli`. We want to use the binary name which is
`magika`. Feature request on `clap` side: clap-rs/clap#5738.
  • Loading branch information
ia0 authored Sep 20, 2024
1 parent 5f01275 commit 5f07dd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions rust/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

### Patch

- Fix the `--version` binary name from `magika-cli` to `magika`
- Make sure ONNX Runtime telemetry is disabled
- Change the default of the hidden flag `--num-tasks` from 1 to the number of CPUs

Expand Down
2 changes: 1 addition & 1 deletion rust/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use tokio::io::AsyncReadExt;

/// Determines the content type of files with deep-learning.
#[derive(Parser)]
#[command(version = Version, arg_required_else_help = true)]
#[command(name = "magika", version = Version, arg_required_else_help = true)]
struct Flags {
/// List of paths to the files to analyze.
///
Expand Down

0 comments on commit 5f07dd1

Please sign in to comment.