Skip to content

Commit

Permalink
Remove redundant alias information from CLI (#1237)
Browse files Browse the repository at this point in the history
Remove redundant information about `toolchain fetch` being an alias of
`toolchain fetch`.

<img width="483" alt="image"
src="https://github.com/user-attachments/assets/f20fe66e-124f-4750-87bf-85d862041861">
  • Loading branch information
piotrgredowski committed Jul 20, 2024
1 parent e293330 commit e93210a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rye/src/cli/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::pyproject::PyProject;
use crate::sources::py::PythonVersionRequest;
use crate::utils::CommandOutput;

/// Fetches a Python interpreter for the local machine. This is an alias of `rye toolchain fetch`.
/// Fetches a Python interpreter for the local machine.
#[derive(Parser, Debug)]
pub struct Args {
/// The version of Python to fetch.
Expand Down
2 changes: 1 addition & 1 deletion rye/src/cli/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use crate::lock::KeyringProvider;
use crate::sources::py::PythonVersionRequest;
use crate::utils::CommandOutput;

/// Installs a package as global tool. This is an alias of `rye tools install`.
/// Installs a package as global tool.
#[derive(Parser, Debug)]
pub struct Args {
/// The name of the package to install.
Expand Down
4 changes: 2 additions & 2 deletions rye/src/cli/uninstall.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ use clap::Parser;
use crate::installer::uninstall;
use crate::utils::CommandOutput;

/// Uninstalls a global tool. This is an alias of `rye tools uninstall`.
/// Uninstalls a global tool.
#[derive(Parser, Debug)]
pub struct Args {
/// The package to uninstall
/// The package to uninstall.
name: String,
/// Enables verbose diagnostics.
#[arg(short, long)]
Expand Down

0 comments on commit e93210a

Please sign in to comment.