Added more command flags, start documenting command flags, removed args argument from params function

This commit is contained in:
Essem 2021-07-14 17:23:50 -05:00
parent e414d31b52
commit d03967212e
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
24 changed files with 240 additions and 205 deletions

View file

@ -28,6 +28,7 @@ class Command {
static description = "No description found";
static aliases = [];
static arguments = [];
static flags = [];
static requires = [];
}

View file

@ -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);