cli/terminal: clean up args::Error type

The other variants of `terminal::args::Error` were no longer used.
The only variant required is `Error::WithHint`.

The enum is also made private, since it is only used in this crate.
This commit is contained in:
Fintan Halpenny
2025-11-01 11:20:43 +01:00
committed by Lorenz Leutgeb
parent a75db6a695
commit 961301f643
2 changed files with 3 additions and 11 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
pub mod args;
pub use args::Error;
pub(crate) use args::Error;
pub mod format;
pub mod io;
pub use io::signer;
+1 -10
View File
@@ -5,16 +5,7 @@ use radicle::node::policy::Scope;
use radicle::prelude::{Did, NodeId, RepoId};
#[derive(thiserror::Error, Debug)]
pub enum Error {
/// If this error is returned from argument parsing, help is displayed.
#[error("help invoked")]
Help,
/// If this error is returned from argument parsing, the manual page is displayed.
#[error("help manual invoked")]
HelpManual { name: &'static str },
/// If this error is returned from argument parsing, usage is displayed.
#[error("usage invoked")]
Usage,
pub(crate) enum Error {
/// An error with a hint.
#[error("{err}")]
WithHint {