function e(e,t){return typeof e.getOptionValueSource==`function`?t.some(t=>e.getOptionValueSource(t)===`cli`):!1}function t(e,t){if(typeof e.getOptionValueSource==`function`)return e.getOptionValueSource(t)}function n(e,n){if(!e)return;let r=t(e,n);if(r&&r!==`default`)return;let i=0,a=e.parent;for(;a&&i<2;){let e=t(a,n);if(e&&e!==`default`)return a.opts()[n];i+=1,a=a.parent}}export{n,e as t};
