Reverse argument order for --function

Resolves #413.