From 4f0c52ac1690987ad2c0a4e42ac35da6828cc741 Mon Sep 17 00:00:00 2001 From: Lux Aliaga Date: Wed, 26 Oct 2022 17:02:23 -0300 Subject: [PATCH] doc: Add "vento -u" to documentation I was about to release v1.1.0 until I forgot this command was completely undocumented, so here it is. --- build.rs | 6 ++++++ src/help.rs | 2 ++ 2 files changed, 8 insertions(+) diff --git a/build.rs b/build.rs index 85638f5..4ca162b 100644 --- a/build.rs +++ b/build.rs @@ -56,6 +56,12 @@ fn vento() -> Result { .long("--switch") .help("Switches inventory slots"), ) + .flag( + Flag::new() + .short("-u") + .long("--undo") + .help("Undoes the last action"), + ) .flag( Flag::new() .short("-i") diff --git a/src/help.rs b/src/help.rs index 8bcaa17..b31f6f9 100644 --- a/src/help.rs +++ b/src/help.rs @@ -29,6 +29,7 @@ pub fn vento() -> Result<()> { {} - {}: Lists files in selected inventory - {}: Switches slots + - {}: Undoes the last action - {}: Initializes Vento - {}: Displays this message", "Vento".bold().blue(), @@ -37,6 +38,7 @@ pub fn vento() -> Result<()> { .bold() .green(), "vento ( -c | --switch )".bold().green(), + "vento ( -u | --undo )".bold().green(), "vento ( -i | --init )".bold().green(), "vento ( -h | --help )".bold().green() );