-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor CLI argument parsing (#467)
Summary: Working towards #391. I wanted to open this to get feedback on the approach. I could have chosen to use exceptions, but I find sealed classes much more composable and I already anticipate adding another class to the `ParseResult` hierarchy to represent a situation where a message needs to be shown to the user but isn't an error (`--help` is the obvious example). Closes #465 more or less as a side-effect. Pull Request resolved: #467 Reviewed By: strulovich Differential Revision: D58136233 Pulled By: hick209 fbshipit-source-id: 85662e7b5f19195c4bb4c9c28caa02ae224ede52
- Loading branch information
1 parent
9a916b7
commit 26a24ae
Showing
3 changed files
with
134 additions
and
103 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
Oops, something went wrong.