723
};
724
self.unfreeze = function unfreeze(defaultCommand = false) {
725
>
const frozen = frozens.pop();
usage.ts
726
>
// In the case of running a defaultCommand, we reset
727
>
// usage early to ensure we receive the top level instructions.
728
>
// unfreezing again should just be a noop:
729
>
if (!frozen) return;
730
>
// Addresses: https://github.com/yargs/yargs/issues/2030
731
>
if (defaultCommand) {
732
descriptions = {...frozen.descriptions, ...descriptions};
733
commands = [...frozen.commands, ...commands];