docs: fix incorrect comment on machine_readable
This commit is contained in:
@@ -5,7 +5,9 @@ use strum::EnumString;
|
|||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
#[command(about = "SDGB api tool", long_about = env!("CARGO_PKG_DESCRIPTION"))]
|
#[command(about = "SDGB api tool", long_about = env!("CARGO_PKG_DESCRIPTION"))]
|
||||||
pub struct Cli {
|
pub struct Cli {
|
||||||
/// try to generate human readable output.
|
/// Try to generate machine readable format.
|
||||||
|
///
|
||||||
|
/// You must specify this for `-f, --format` to take effect.
|
||||||
#[arg(short = 'M', long)]
|
#[arg(short = 'M', long)]
|
||||||
pub machine_readable: bool,
|
pub machine_readable: bool,
|
||||||
#[command(subcommand)]
|
#[command(subcommand)]
|
||||||
@@ -50,7 +52,7 @@ pub enum Commands {
|
|||||||
/// JSON format.
|
/// JSON format.
|
||||||
///
|
///
|
||||||
/// `origin`: official json response
|
/// `origin`: official json response
|
||||||
///
|
///
|
||||||
/// `dx_rating_net`: DxRatingNet Format
|
/// `dx_rating_net`: DxRatingNet Format
|
||||||
#[arg(short, long, default_value_t = RatingFormat::default())]
|
#[arg(short, long, default_value_t = RatingFormat::default())]
|
||||||
format: RatingFormat,
|
format: RatingFormat,
|
||||||
|
|||||||
Reference in New Issue
Block a user