-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Better Common Options Parsing (#176)
* support show/hide/suppress labels in config files * ensure suppress/hide always override show * Don't support overrides from the top level of config any more * Fix a bug in computing the value to set * Make sure the default value is always the last choice * Fix tests * Upgrade to 0.13.+ * Fix a copy paste bug
- Loading branch information
1 parent
3e37000
commit 420c245
Showing
7 changed files
with
89 additions
and
45 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
command = parse | ||
suppress-warnings = false | ||
show-warnings = true | ||
show-style-warnings = true | ||
show-missing-warnings = true | ||
|
||
common { | ||
suppress-warnings = true | ||
hide-warnings = true | ||
hide-style-warnings = true | ||
hide-missing-warnings = true | ||
} |
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
2 changes: 1 addition & 1 deletion
2
testkit/src/test/input/hugo.config → testkit/src/test/input/hugo.conf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
common = { | ||
common { | ||
show-times = true | ||
verbose = false | ||
quiet = false | ||
|