diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-04-12 13:27:58 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-08-25 08:05:43 +0200 |
commit | f9547c81a19fd1301a52978a7334030214e8ab11 (patch) | |
tree | be68665054f1d88fabaaab2e85d733a7251259e9 | |
parent | 3e19c78b725562186996f38daa34288650db0949 (diff) | |
download | lua-aports-f9547c81a19fd1301a52978a7334030214e8ab11.tar.bz2 lua-aports-f9547c81a19fd1301a52978a7334030214e8ab11.tar.xz |
buildrepo: add longopts
-rwxr-xr-x | buildrepo.lua | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/buildrepo.lua b/buildrepo.lua index 6170c24..6640b49 100755 --- a/buildrepo.lua +++ b/buildrepo.lua @@ -110,15 +110,16 @@ local function log_progress(progress, repo, aport) end ----------------------------------------------------------------- local opthelp = [[ - -a DIR Set the aports base dir to DIR instead of $HOME/aports - -d DIR Set destination repository base to DIR instead of $HOME/packages - -h Show this help and exit - -l DIR Create build logs in DIR/REPO/pkgname/ instead of stdout - -k Keep going, even if packages fails - -n Dry run. Don't acutally build or delete, just print - -p Purge obsolete packages from REPODIR after build - -r REPO Dependencies are found in REPO - -s Skip those who previously failed (src dir exists) + -a, --aports=DIR Set the aports base dir to DIR instead of $HOME/aports + -d, --destdir=DIR Set destination repository base to DIR instead of + $HOME/packages + -h, --help Show this help and exit + -l, --logdir=DIR Create build logs in DIR/REPO/pkgname/ instead of stdout + -k, --keep-going Keep going, even if packages fails + -n, --dry-run Dry run. Don't acutally build or delete, just print + -p, --purge Purge obsolete packages from REPODIR after build + -r, --deps-repo=REPO Dependencies are found in REPO + -s, --skip-failed Skip those who previously failed (src dir exists) ]] local function usage(exitcode) |