This interface provides a simple way to init the 'SCOPE' variable with the scopes
of currently registered commands.
There is no synchronization between the content of the SCOPE variable and the Set
of returned scope names: the set is only used at init time of the session.