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 fd2939b4e760644b58d9daaf813e127f3529b73b
parent bfa026e69f007d6a9f45baaee22e1247a5cd616f
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 {