From dd600a1852e57a7a7297e573891a6e4aa5805d6c Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sun, 12 Jun 2016 22:00:33 -0400 Subject: tweaks towards xscreensaver integration --- src/main.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index e07c972..af0a37f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -199,11 +199,20 @@ fn main() { let args = util::convert_xscreensaver_args(args); let mut opts = Options::new(); + + // Common Args (all screensavers) opts.optflag("h", "help", "print this help menu"); opts.optflag("", "window", "run in a window (IGNORED)"); opts.optflag("", "root", "run in root window (IGNORED)"); + opts.optflag("", "fps", "show frames per second (IGNORED)"); opts.optopt("", "window-id", "X window id number", "NUM"); + // Bovine-specific args + opts.optflag("", "wire", "wireframe mode (IGNORED)"); + opts.optopt("c", "count", "how many cows? (1 to 9) (IGNORED)", "NUM"); + opts.optopt("", "delay", "inter-frame delay (0 to 100000) (IGNORED)", "NUM"); + opts.optopt("s", "speed", "how fast? ratio, with 1.0 as normal (IGNORED)", "NUM"); + let matches = match opts.parse(&args[1..]) { Ok(m) => { m } Err(f) => { -- cgit v1.2.3