forked from facebook/hhvm
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make options with dashes show correctly on option error.
Summary: There is a bug in at least Boost 1.54 where options with dashes `-` in them are not handled correctly. Basically all but the last substring after the last dash is returned. See: facebook#2864 So our error string when an option had an invalid argument was just plain wrong. Since we can't fix boost very easily and are not planning to upgrade yet, we workaround it with this fix. Fixes: facebook#2864 Reviewed By: @paulbiss Differential Revision: D1681063 Signature: t1:1681063:1416505169:7664cff3c23b8fdfec995c54897eb276d44f92d6
- Loading branch information
1 parent
745f82e
commit 50ee3f0
Showing
3 changed files
with
140 additions
and
54 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