Created
January 9, 2017 20:21
-
-
Save savonarola/b1fc923aebeaf614adabeb56cac058c3 to your computer and use it in GitHub Desktop.
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 characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment