diff --git a/src/getopt.erl b/src/getopt.erl index f303ab0..454a96e 100644 --- a/src/getopt.erl +++ b/src/getopt.erl @@ -25,7 +25,7 @@ -define(OPT_ARG, 4). -define(OPT_HELP, 5). --define(IS_OPT_SPEC(Opt), (is_tuple(Opt) andalso (size(Opt) =:= ?OPT_HELP))). +-define(IS_OPT_SPEC(Opt), (tuple_size(Opt) =:= ?OPT_HELP)). %% Atom indicating the data type that an argument can be converted to.