core: add completion "-quit" for command /upgrade

A "-dummy" option has been added too, just to prevent accidental completion with
"-quit" (which is the first option completed).

Thanks to stfn for initial patch.