Verified Commit eb43bb18 authored by Jordan Petridis's avatar Jordan Petridis 🌱

Manually indent struct-opt attributes.

parent 7b36aabd
......@@ -24,23 +24,30 @@ use std::thread;
use std::time::Duration;
use structopt::StructOpt;
#[cfg_attr(rustfmt, rustfmt_skip)]
#[derive(StructOpt, Debug)]
#[structopt(name = "rsvg-bench", about = "Benchmarking utility for librsvg.")]
struct Opt {
#[structopt(short = "s", long = "sleep",
#[structopt(short = "s",
long = "sleep",
help = "Number of seconds to sleep before starting to process SVGs",
default_value = "0")]
sleep_secs: usize,
#[structopt(short = "p", long = "num-parse", help = "Number of times to parse each file",
#[structopt(short = "p",
long = "num-parse",
help = "Number of times to parse each file",
default_value = "100")]
num_parse: usize,
#[structopt(short = "r", long = "num-render", help = "Number of times to render each file",
#[structopt(short = "r",
long = "num-render",
help = "Number of times to render each file",
default_value = "100")]
num_render: usize,
#[structopt(long = "pixbuf", help = "Render to a GdkPixbuf instead of a Cairo image surface")]
#[structopt(long = "pixbuf",
help = "Render to a GdkPixbuf instead of a Cairo image surface")]
render_to_pixbuf: bool,
#[structopt(help = "Input files or directories", parse(from_os_str))]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment