agadir 0.1.0

Blogging over the terminal
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use clap::{arg, crate_version, Command};

pub fn cli() -> Command {
    Command::new("agadir")
        .about("Blogging over the terminal")
        .version(crate_version!())
        .arg(
            arg!(--port <port>)
                .short('p')
                .required(false)
                .help("listening port")
                .default_value("2222")
                .value_parser(clap::value_parser!(u16)),
        )
}