generate scrips should use --filter flag rather than filter argument.

cc: @ceejbot