fn clap_subcommand(&self) -> clap::App<'static, 'static> {
        let subcommand = clap::SubCommand::with_name(self.into()).about(self.description());
        match self.category() {
            FractalCategory::ChaosGames => subcommand.arg(
                clap::Arg::with_name("drawrate")
                    .takes_value(true)
                    .help("The number of points to draw per frame")
                    .long("drawrate")
                    .value_name("MPF")
                    .default_value("1"),
            ),
            FractalCategory::EscapeTimeFractals => subcommand
                .arg(
                    clap::Arg::with_name("MAX_ITERATIONS")
                        .required(true)
                        .index(1)
                        .help(
                            "The maximum number of iterations of the escape time function before \
                         deciding the fracal has escaped",
                        ),
                )
                .arg(
                    clap::Arg::with_name("POWER")
                        .required(true)
                        .index(2)
                        .help("The exponent used in the escape time function (positive integer)"),
                ),
            FractalCategory::TurtleCurves => subcommand
                .arg(
                    clap::Arg::with_name("drawrate")
                        .takes_value(true)
                        .help("The number of points to draw per frame")
                        .long("drawrate")
                        .value_name("MPF")
                        .default_value("1"),
                )
                .arg(clap::Arg::with_name("ITERATION").required(true).index(1)),
        }
    }
/// Constructs a clap subcommand for a given `SelectedFractal` variant.
///
/// It uses the fractal's category to determine which input arguments it supports.
Constructs a clap subcommand for a given `SelectedFractal` variant.
It uses the fractal's category to determine which input arguments it supports.
Constructs a clap subcommand for a given ` SelectedFractal ` variant . It uses the fractal ' s category to determine which input arguments it supports .
fn clap_subcommand(&self) -> clap::App<'static, 'static> {
        let subcommand = clap::SubCommand::with_name(self.into()).about(self.description());
        match self.category() {
            FractalCategory::ChaosGames => subcommand.arg(
                clap::Arg::with_name("drawrate")
                    .takes_value(true)
                    .help("The number of points to draw per frame")
                    .long("drawrate")
                    .value_name("MPF")
                    .default_value("1"),
            ),
            FractalCategory::EscapeTimeFractals => subcommand
                .arg(
                    clap::Arg::with_name("MAX_ITERATIONS")
                        .required(true)
                        .index(1)
                        .help(
                            "The maximum number of iterations of the escape time function before \
                         deciding the fracal has escaped",
                        ),
                )
                .arg(
                    clap::Arg::with_name("POWER")
                        .required(true)
                        .index(2)
                        .help("The exponent used in the escape time function (positive integer)"),
                ),
            FractalCategory::TurtleCurves => subcommand
                .arg(
                    clap::Arg::with_name("drawrate")
                        .takes_value(true)
                        .help("The number of points to draw per frame")
                        .long("drawrate")
                        .value_name("MPF")
                        .default_value("1"),
                )
                .arg(clap::Arg::with_name("ITERATION").required(true).index(1)),
        }
    }
fn clap_subcommand ( & self ) -> clap :: App < ' static , ' static > { let subcommand = clap :: SubCommand :: with_name ( self . into ( ) ) . about ( self . description ( ) ) ; match self . category ( ) { FractalCategory :: ChaosGames => subcommand . arg ( clap :: Arg :: with_name ( " " ) . takes_value ( true ) . help ( " " ) . long ( " " ) . value_name ( " " ) . default_value ( " " ) , ) , FractalCategory :: EscapeTimeFractals => subcommand . arg ( clap :: Arg :: with_name ( " " ) . required ( true ) . index ( 1 ) . help ( " \
 " , ) , ) . arg ( clap :: Arg :: with_name ( " " ) . required ( true ) . index ( 2 ) . help ( " " ) , ) , FractalCategory :: TurtleCurves => subcommand . arg ( clap :: Arg :: with_name ( " " ) . takes_value ( true ) . help ( " " ) . long ( " " ) . value_name ( " " ) . default_value ( " " ) , ) . arg ( clap :: Arg :: with_name ( " " ) . required ( true ) . index ( 1 ) ) , } }
Constructs a clap subcommand for a given `SelectedFractal` variant.
Constructs a clap subcommand for a given ` SelectedFractal ` variant .
&self