1 2 3 4 5 6 7 8 9 10 11 12
use clap::Subcommand; #[derive(Subcommand, Debug, Clone)] pub enum UrlCommand { /// Print the current request URL Get, /// Set the request URL Set { #[clap(value_hint = clap::ValueHint::Url)] new_url: String } }