Added more command flags, start documenting command flags, removed args argument from params function
This commit is contained in:
parent
e414d31b52
commit
d03967212e
24 changed files with 240 additions and 205 deletions
|
@ -28,6 +28,7 @@ class Command {
|
|||
static description = "No description found";
|
||||
static aliases = [];
|
||||
static arguments = [];
|
||||
static flags = [];
|
||||
static requires = [];
|
||||
}
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ class ImageCommand extends Command {
|
|||
|
||||
switch (typeof this.params) {
|
||||
case "function":
|
||||
Object.assign(magickParams, this.params(this.args, magickParams.url));
|
||||
Object.assign(magickParams, this.params(magickParams.url, magickParams.delay));
|
||||
break;
|
||||
case "object":
|
||||
Object.assign(magickParams, this.params);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue