aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/ttyplay
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-12-05 19:29:07 -0500
committerJesse Luehrs <doy@tozt.net>2021-12-05 19:29:07 -0500
commitd9611e009279eeb74d642f72adab9621577b33c8 (patch)
treeb0a6af1dc3fd14968b6146081cc269b5e559fee4 /src/bin/ttyplay
parent071c1c58c284867a61dfca158f5cede825690355 (diff)
downloadttyrec-bin-d9611e009279eeb74d642f72adab9621577b33c8.tar.gz
ttyrec-bin-d9611e009279eeb74d642f72adab9621577b33c8.zip
fill out help output
Diffstat (limited to 'src/bin/ttyplay')
-rw-r--r--src/bin/ttyplay/main.rs33
1 files changed, 28 insertions, 5 deletions
diff --git a/src/bin/ttyplay/main.rs b/src/bin/ttyplay/main.rs
index e295932..c1cebc9 100644
--- a/src/bin/ttyplay/main.rs
+++ b/src/bin/ttyplay/main.rs
@@ -11,18 +11,41 @@ mod input;
mod timer;
#[derive(Debug, structopt::StructOpt)]
-#[structopt(about = "ttyplay")]
+#[structopt(
+ name = "ttyplay",
+ about = "Plays back ttyrec files",
+ long_about = "\n\
+ This is a player for ttyrec files. It allows arbitrary seeking, both \
+ forward and backward, as well as searching through the file for \
+ output. Playback can be paused using the Space key, and the rest of \
+ the key bindings can be found by pressing `?` while the player is \
+ paused."
+)]
struct Opt {
- #[structopt(short, long, default_value = "ttyrec")]
+ #[structopt(
+ short,
+ long,
+ default_value = "ttyrec",
+ help = "File to read ttyrec data from"
+ )]
file: std::ffi::OsString,
- #[structopt(long)]
+ #[structopt(
+ long,
+ help = "Restrict time between frames to at most this many milliseconds"
+ )]
clamp: Option<u64>,
- #[structopt(short, long)]
+ #[structopt(short, long, help = "Start the player paused")]
paused: bool,
- #[structopt(short, long, default_value = "4")]
+ #[structopt(
+ short,
+ long,
+ default_value = "4",
+ help = "Speed to run the playback at. This can be a number from 0-8, \
+ where higher is faster."
+ )]
speed: u32,
}