Skip to content

Commit

Permalink
readded --extend functionality to filter command
Browse files Browse the repository at this point in the history
  • Loading branch information
mparadinha authored and ryukinix committed Feb 2, 2017
1 parent e8929a1 commit 14443c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions mal/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ def create_parser():
help='find anime in users list')
parser_filter.add_argument('anime_regex',
help='regex pattern to match anime titles')
parser_filter.add_argument('--extend', action='store_true',
help='display all available information on anime')
parser_filter.add_argument('--user', type=str, default=None,
help='choose which users list to filter through')
parser_filter.set_defaults(func=commands.filter)
Expand Down
2 changes: 1 addition & 1 deletion mal/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def search(mal, args):

def filter(mal, args):
"""Search and find an anime in the users list."""
core.find(mal, args.anime_regex.lower(), user=args.user)
core.find(mal, args.anime_regex.lower(), extra=args.extend, user=args.user)


def increase(mal, args):
Expand Down

0 comments on commit 14443c9

Please sign in to comment.