Created
January 9, 2017 20:21
-
-
Save savonarola/b1fc923aebeaf614adabeb56cac058c3 to your computer and use it in GitHub Desktop.
Revisions
-
savonarola created this gist
Jan 9, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ defmodule ParseResult do @type arg_value :: term @type flag_value :: boolean | pos_integer @type option_value :: term | [term] @type t :: %ParseResult{ args: %{atom => arg_value}, flags: %{atom => flag_value}, options: %{atom => option_value}, unknown: [String.t] } defstruct [ args: %{}, flags: %{}, options: %{}, unknown: [] ] end