mirror of
https://github.com/mikpe/pdp10-tools.git
synced 2026-01-24 11:22:52 +00:00
getopt: remove unused parse/2 API function
This commit is contained in:
parent
858cec95bb
commit
a4d6d2ffff
@ -19,9 +19,7 @@
|
|||||||
%%% along with pdp10-tools. If not, see <http://www.gnu.org/licenses/>.
|
%%% along with pdp10-tools. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
-module(getopt).
|
-module(getopt).
|
||||||
-export([parse/2, parse/3, format_error/1]).
|
-export([parse/3, format_error/1]).
|
||||||
|
|
||||||
-type option() :: char() | {char(), string()}.
|
|
||||||
|
|
||||||
-define(no, no).
|
-define(no, no).
|
||||||
-define(required, required).
|
-define(required, required).
|
||||||
@ -36,12 +34,6 @@
|
|||||||
|
|
||||||
-type longopt() :: term() | {term(), string()}.
|
-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()])
|
-spec parse([string()], string(), [longopt_spec()])
|
||||||
-> {ok, {[longopt()], [string()]}}
|
-> {ok, {[longopt()], [string()]}}
|
||||||
| {error, {module(), term()}}.
|
| {error, {module(), term()}}.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user