getopt: remove unused parse/2 API function

This commit is contained in:
Mikael Pettersson 2019-09-09 17:39:20 +02:00
parent 858cec95bb
commit a4d6d2ffff

View File

@ -19,9 +19,7 @@
%%% along with pdp10-tools. If not, see <http://www.gnu.org/licenses/>.
-module(getopt).
-export([parse/2, parse/3, format_error/1]).
-type option() :: char() | {char(), string()}.
-export([parse/3, format_error/1]).
-define(no, no).
-define(required, required).
@ -36,12 +34,6 @@
-type longopt() :: term() | {term(), string()}.
-spec parse([string()], string())
-> {ok, {[option()], [string()]}}
| {error, {module(), term()}}.
parse(Argv, OptString) ->
parse(Argv, OptString, []).
-spec parse([string()], string(), [longopt_spec()])
-> {ok, {[longopt()], [string()]}}
| {error, {module(), term()}}.