[PATCH v2 09/10] parsemail: Convert to a management command

Stephen Finucane stephenfinucane at hotmail.com
Tue Aug 30 08:42:01 AEST 2016


On 28 Aug 14:59, Daniel Axtens wrote:
> >>  PYTHONPATH="$PATCHWORK_BASE":"$PATCHWORK_BASE/lib/python:$PYTHONPATH" \
> >>          DJANGO_SETTINGS_MODULE=patchwork.settings.production \
> >> -        "$PATCHWORK_BASE/patchwork/bin/parsemail.py"
> >> +        "$PATCHWORK_BASE/patchwork/manage.py parsemail"
> >>
> >> +# NOTE(stephenfin): We must return 0 here. For more information, refer
> >> +# to https://patchwork.ozlabs.org/patch/602248/
> >>  exit 0
> >
> > This makes sense, but I'm still confused why you don't pass $* to the 
> > command since it can take "--list-id" as an option?

True that. $@ looks like the correct option though, per StackOverflow?
[1].

> Yep - I had added $@ to my invocation, which I think does something
> similar.
> 
> Regards,
> Daniel

I'll do this a v3 so :)

Stephen

[1] http://superuser.com/a/247131


More information about the Patchwork mailing list