- args = ''
-
- option_list = BaseCommand.option_list + (
- make_option('-n', '--book-id', action='store_true', dest='book_id', default=False,
- help='book id instead of slugs'),
- make_option('-t', '--just-tags', action='store_true', dest='just_tags', default=False,
- help='just reindex tags'),
- )
- def handle(self, *args, **opts):
+
+ def add_arguments(self, parser):
+ parser.add_argument(
+ '-n', '--book-id', action='store_true', dest='book_id',
+ default=False, help='book id instead of slugs')
+ parser.add_argument(
+ '-t', '--just-tags', action='store_true', dest='just_tags',
+ default=False, help='just reindex tags')
+ parser.add_argument(
+ '--start', dest='start_from', default=None,
+ help='start from this slug')
+ parser.add_argument(
+ '--stop', dest='stop_after', default=None,
+ help='stop after this slug')
+ parser.add_argument('args', nargs='*', metavar='slug/id')
+
+ def handle(self, **opts):