himalaya 0.5.7

Command-line interface for email management
Documentation
//! Module related to output CLI.
//!
//! This module provides arguments related to output.

use clap::Arg;

/// Output arguments.
pub fn args<'a>() -> Vec<Arg<'a, 'a>> {
    vec![
        Arg::with_name("output")
            .long("output")
            .short("o")
            .help("Defines the output format")
            .value_name("FMT")
            .possible_values(&["plain", "json"])
            .default_value("plain"),
        Arg::with_name("log-level")
            .long("log-level")
            .alias("log")
            .short("l")
            .help("Defines the logs level")
            .value_name("LEVEL")
            .possible_values(&["error", "warn", "info", "debug", "trace"])
            .default_value("info"),
    ]
}