From dbab6262a2430809430deda9d8650f58f9d80898 Mon Sep 17 00:00:00 2001 From: Craig Everett Date: Thu, 23 Jan 2025 14:25:04 +0900 Subject: [PATCH] Update for zx (#1) Reviewed-on: https://git.qpq.swiss/QPQ-AG/getopt/pulls/1 Co-authored-by: Craig Everett Co-committed-by: Craig Everett --- .gitignore | 19 ++++++++++++++++++- LICENSE | 26 ++++++++++++++++++++++++++ README.md | 2 +- src/getopt.app.src | 2 +- src/getopt.erl | 1 + zomp.meta | 17 +++++++++++++++++ 6 files changed, 64 insertions(+), 3 deletions(-) create mode 100644 LICENSE create mode 100644 zomp.meta diff --git a/.gitignore b/.gitignore index a485625..40ca652 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,18 @@ -/_build +.rebar3 +_* +.eunit +*.o +*.beam +*.plt +*.swp +*.swo +.erlang.cookie +ebin +log +erl_crash.dump +.rebar +logs +_build +.idea +*.iml +rebar3.crashdump diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e9d8fcc --- /dev/null +++ b/LICENSE @@ -0,0 +1,26 @@ +Copyright 2009 Juan Jose Comellas + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, +this list of conditions and the following disclaimer in the documentation +and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors +may be used to endorse or promote products derived from this software without +specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md index 5bdfa74..2a73237 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ To use getopt in your project you can just add it as a dependency in your ```erlang {deps, [ - {getopt, "1.0.2"} + {getopt, "1.0.3"} ] } ``` diff --git a/src/getopt.app.src b/src/getopt.app.src index c97b247..a5b9723 100644 --- a/src/getopt.app.src +++ b/src/getopt.app.src @@ -1,6 +1,6 @@ {application,getopt, [{description,"Command-line options parser for Erlang"}, - {vsn,"1.0.2"}, + {vsn,"1.0.3"}, {modules,[]}, {registered,[]}, {maintainers,["Juan Jose Comellas"]}, diff --git a/src/getopt.erl b/src/getopt.erl index 8e9ea1b..98f0cb8 100644 --- a/src/getopt.erl +++ b/src/getopt.erl @@ -9,6 +9,7 @@ %%% retrieved from: http://www.opensource.org/licenses/bsd-license.php %%%------------------------------------------------------------------- -module(getopt). +-vsn("1.0.3"). -author('juanjo@comellas.org'). -export([parse/2, check/2, parse_and_check/2, format_error/2, diff --git a/zomp.meta b/zomp.meta new file mode 100644 index 0000000..eecfd3b --- /dev/null +++ b/zomp.meta @@ -0,0 +1,17 @@ +{name,"Erlang GetOpt"}. +{type,lib}. +{modules,[]}. +{prefix,none}. +{author,"Juan Jose Comellas"}. +{desc,"A getopt utility for Erlang"}. +{package_id,{"otpr","getopt",{1,0,3}}}. +{deps,[]}. +{key_name,none}. +{a_email,[]}. +{c_email,[]}. +{copyright,"Juan Jose Comellas"}. +{file_exts,[]}. +{license,"BSD-3-Clause-Attribution"}. +{repo_url,"https://git.qpq.swiss/QPQ-AG/getopt"}. +{tags,["args","parsing","getopt","cli"]}. +{ws_url,[]}.