summaryrefslogtreecommitdiffstats
path: root/src/command.rs
diff options
context:
space:
mode:
authorJokler <jokler@protonmail.com>2020-01-16 19:06:04 +0100
committerGitHub <noreply@github.com>2020-01-16 19:06:04 +0100
commitfbaa817578faf46242d4400aeaba4bea37317cd1 (patch)
treecb261f1b02e7c7c245c7878e70f4b839b79156c7 /src/command.rs
parent41689b929336ff4b5f09d9850113787ba0f6d241 (diff)
downloadpokebot-fbaa817578faf46242d4400aeaba4bea37317cd1.tar.gz
pokebot-fbaa817578faf46242d4400aeaba4bea37317cd1.zip
Revert chat command syntax and add skip alias (#9)
Diffstat (limited to 'src/command.rs')
-rw-r--r--src/command.rs9
1 files changed, 7 insertions, 2 deletions
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,