From 78da1c644141e87bb47ae907ef9d80fb926c1965 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Sat, 22 Sep 2018 12:03:46 -0700 Subject: [PATCH] List choices for --mode and make --pprof a path, not just a bool. --- rtiow/src/renderer.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rtiow/src/renderer.rs b/rtiow/src/renderer.rs index a285b21..1ac7528 100644 --- a/rtiow/src/renderer.rs +++ b/rtiow/src/renderer.rs @@ -78,10 +78,11 @@ pub struct Opt { /// Sub-samples per pixel #[structopt(short = "s", long = "subsample", default_value = "1")] pub subsamples: usize, + /// Select scene to render, one of: "bench", "book", "tutorial" "cube", "bvh", "test" #[structopt(long = "model", default_value = "test")] pub model: Model, - #[structopt(long = "pprof")] - pub pprof: bool, + #[structopt(long = "pprof", parse(from_os_str))] + pub pprof: Option, /// Use acceleration data structure, may be BVH or kd-tree depending on scene. #[structopt(long = "use_accel")] pub use_accel: bool,