Fix hyphen support in --prefix
This commit is contained in:
parent
14a9dde083
commit
a1f947eb50
2 changed files with 3 additions and 2 deletions
|
@ -29,10 +29,11 @@ struct Arguments {
|
|||
#[clap(long = "token", help = "Discord token")]
|
||||
pub discord_token: String,
|
||||
#[clap(long, help = "Traditional text command prefix, including space, if any", default_value = "-h")]
|
||||
#[structopt(allow_hyphen_values = true)] // clap will eat hyphens e.g. "-h" or -h otherwise
|
||||
pub prefix: String,
|
||||
#[clap(long, help = "Path to Hugo project where site rebuilds")]
|
||||
pub hugo: String,
|
||||
#[clap(long = "guilds", help = "Guild data JSON file", default_value = "guilds.json")]
|
||||
#[clap(long = "guilds", help = "Path to guild data JSON file", default_value = "guilds.json")]
|
||||
pub guild_data: String,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue