From f9f6510c757a102b9537263ee34ee02682ebff8c Mon Sep 17 00:00:00 2001 From: John Breaux Date: Sun, 26 Mar 2023 19:03:25 -0500 Subject: [PATCH] main.rs: Periods in helptext --- src/main.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main.rs b/src/main.rs index f7276ca..7a89d8d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,27 +12,27 @@ use std::{ #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Options, Hash)] struct Arguments { - #[options(help = "Print help text and exit")] + #[options(help = "Print this help message.")] help: bool, - #[options(help = "Enable behavior incompatible with modern software")] + #[options(help = "Enable behavior incompatible with modern software.")] pub authentic: bool, #[options( long = "break", - help = "Set breakpoints for the emulator to stop at", + help = "Set breakpoints for the emulator to stop at.", parse(try_from_str = "parse_hex") )] pub breakpoints: Vec, - #[options(help = "Enable debug mode at startup")] + #[options(help = "Enable debug mode at startup.")] pub debug: bool, - #[options(help = "Enable pause mode at startup", default = "false")] + #[options(help = "Enable pause mode at startup.", default = "false")] pub pause: bool, - #[options(help = "Load a ROM to run on Chirp", required, free)] + #[options(help = "Load a ROM to run on Chirp.", required, free)] pub file: PathBuf, - #[options(help = "Set the target framerate", default = "60")] + #[options(help = "Set the target framerate.", default = "60")] pub frame_rate: u64, - #[options(help = "Set the instructions-per-frame rate", default = "8")] + #[options(help = "Set the instructions-per-frame rate.", default = "8")] pub speed: usize, - #[options(help = "Run the emulator as fast as possible for `step` instructions")] + #[options(help = "Run the emulator as fast as possible for `step` instructions.")] pub step: Option, } @@ -202,4 +202,4 @@ fn parse_hex(value: &str) -> std::result::Result { /// Transforms a bool into "enabled"/"disabled" fn endis(name: &str, state: bool) -> String { format!("{name} {}", if state { "enabled" } else { "disabled" }) -} +} \ No newline at end of file