Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli/terminal: clean up args::Error type
Fintan Halpenny committed 6 months ago
commit 64ac8bf625e18d9e26ef67418b239f85a2232d8c
parent ad2bc69199ee12558f8f71c1df1afb3cb23aa612
2 files changed +3 -11
modified crates/radicle-cli/src/terminal.rs
@@ -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;
modified crates/radicle-cli/src/terminal/args.rs
@@ -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 {