I replaced the episodes arguments to -n to cover the old behavior
like mal inc anime-regex with default=1. Arguments without prefixed
hyphens cannot be used as optional, they will be mandatory.
For anime-regex => anime_regex I changed on inc, dec and search subparser
and commands. I just do that to simplify the usage of the args using
ArgParse, as Python cannot create identifiers using Lisp-case
(first-second-third), we need access them using vars(args)['anime-regex'].
This is really ugly.
Just refactoring some things after merged PR #26, commented on #16.
I replaced the episodes arguments to
-n
to cover the old behavior likemal inc anime-regex
with default=1. Arguments without prefixed hyphens cannot be used as optional, they will be mandatory.For anime-regex => anime_regex I changed on inc, dec and search subparser and commands. I just do that to simplify the usage of the args using ArgParse, as Python cannot create identifiers using Lisp-case (first-second-third), we need access them using vars(args)['anime-regex']. This is really ugly.
Just refactoring some things after merged PR #26, commented on #16.