clier 0.7.4

A cli parser and framework for rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error as ThisError;
/// Clier Errors for crate.
#[derive(Debug, ThisError, Clone)]
pub enum Error {
  /// Invalid format for {0}
  #[error("Invalid format: {0}")]
  InvalidFormat(String),
  /// To many flags
  #[error("Duplicate of flags: {0}")]
  ToManyFlags(String),
  /// Command is not found
  #[error("Command not found: {0}")]
  CommandNotFound(String),
  /// Missing flag
  #[error("Missing flag: {0}")]
  MissingFlag(String),
}