- option_list = BaseCommand.option_list + (
- make_option('-n', '--picture-id', action='store_true', dest='picture_id', default=False,
- help='picture id instead of slugs'),
- )
+ def add_arguments(self, parser):
+ self.add_argument(
+ '-n', '--picture-id', action='store_true', dest='picture_id',
+ default=False, help='picture id instead of slugs')
+ self.add_argument('slug/id', nargs='*', metavar='slug/id')