You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I have discovered a problem with the design of negatable options. Specifically, there is a problem when there is a default provider that dynamically calculates the default (e.g., it gets its values from a configuration file or environment variable).
For example consider a negatable option foo. If the configuration file sets the default to false, then --foo sets the option to true and --no-foo sets the option to false. However, if the configuration file sets the default to true, then these reverse and --foo sets the option to false while --no-foo sets the option to true.
I think this would a confusing behavior for the end user and that --foo and --no-foo should be consistent in what they set the option to regardless of what the default provider computes dynamically.