After adding the advanced menu, the following for the command line on https://planemo.readthedocs.org/en/latest/writing_standalone.html is wrong
$shift_quality
#if $settings.advanced == "advanced"
It should be changed to
#if $settings.advanced == "advanced"
$settings.shift_quality
Thanks,
Justin.