-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix setting a default host through command line (#841)
* Fix setting a default host through command line When trying to set a default host through the command line, the CLI would report that `default` is an invalid key. This is because it was not part of the set of `ConfigOption`'s. The problem with just adding it to there, which I did at first just to see something working, is that these options are also meant to be top-level options. I had to redesign the program a little bit to understand the notion of host-level options and top-level options that can also be host-level options. A test is added to ensure that only one host can ever be set as `default`. * Remove useless check
- Loading branch information
Showing
10 changed files
with
222 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.