From fbaa817578faf46242d4400aeaba4bea37317cd1 Mon Sep 17 00:00:00 2001 From: Jokler Date: Thu, 16 Jan 2020 19:06:04 +0100 Subject: Revert chat command syntax and add skip alias (#9) --- src/command.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/command.rs') diff --git a/src/command.rs b/src/command.rs index 283a47e..fbc714c 100644 --- a/src/command.rs +++ b/src/command.rs @@ -4,8 +4,12 @@ use structopt::StructOpt; #[derive(StructOpt, Debug)] #[structopt( rename_all = "kebab-case", - template = "Try one of these commands:\n{subcommands}", - raw(global_settings = "&[VersionlessSubcommands, ColorNever]",) + template = "{subcommands}", + raw(global_settings = "&[VersionlessSubcommands, + DisableHelpFlags, + DisableVersion, + ColorNever, + NoBinaryName]",) )] pub enum Command { /// Adds url to playlist @@ -17,6 +21,7 @@ pub enum Command { /// Stops audio playback Stop, /// Switches to the next queue entry + #[structopt(alias = "skip")] Next, /// Clears the playback queue Clear, -- cgit v1.2.3-70-g09d2