Add more docs to Command::arguments()
This commit is contained in:
@@ -124,7 +124,8 @@
|
|||||||
//! "This command responds with a greeting."
|
//! "This command responds with a greeting."
|
||||||
//! }
|
//! }
|
||||||
//!
|
//!
|
||||||
//! /// A list of arguments the command accepts.
|
//! /// A list of arguments the command accepts. These are solely for documentation purposes,
|
||||||
|
//! /// they won't affect the parsing you do in the command's `execute` method.
|
||||||
//! fn arguments(&self) -> &'static [Argument] {
|
//! fn arguments(&self) -> &'static [Argument] {
|
||||||
//! &[
|
//! &[
|
||||||
//! Argument {
|
//! Argument {
|
||||||
|
|||||||
Reference in New Issue
Block a user