- def handle(self, ftype, path, **options):
+ def add_arguments(self, parser):
+ parser.add_argument(
+ '-t', '--tags', dest='tags', metavar='SLUG,...',
+ help='Use only books tagged with this tags')
+ parser.add_argument(
+ '-i', '--include', dest='include', metavar='SLUG,...',
+ help='Include specific books by slug')
+ parser.add_argument(
+ '-e', '--exclude', dest='exclude', metavar='SLUG,...',
+ help='Exclude specific books by slug')
+ parser.add_argument('ftype', metavar='|'.join(Book.formats))
+ parser.add_argument('path', metavar='output_path.zip')
+
+ def handle(self, **options):