From ce2b1261cf4c5edd73f44aa7c3b27bf9da7da647 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 14 May 2023 06:44:06 -0400 Subject: cli.txt: Split options by mode --- diff --git a/cli.txt b/cli.txt index f181c7a..8c54800 100644 --- a/cli.txt +++ b/cli.txt @@ -3,23 +3,11 @@ Usage: ./opkg-opk [-c CONTROL-DIR] [-f CONTROL-FILE] [-l] PACKAGE --- OR --- -Usage: ./opkg-opk [-c CONTROL-DIR] [-f CONTROL-FILE] [-F DATA-FILE] [-l] [-L] PACKAGE - or: ./opkg-opk -b -c CONTROL-DIR -d DATA-DIR [-o OVERRIDE-FILE] [-u USER] [-g GROUP] [-r] PACKAGE +Read mode: +Usage: ./opkg-opk [-c CONTROL-DIR] [-f CONTROL-FILE] [-F DATA-FILE] [-l] [-L] \ + PACKAGE Options: - -b, --build Create a package from the specified - CONTROL-DIR and DATA-DIR. - -c, --control-dir=CONTROL-DIR In build mode, read control files from - CONTROL-DIR. Otherwise, extract control - files into CONTROL-DIR. - -d, --data-dir=DATA-DIR In build mode, read data files from DATA-DIR. - -o, --ownership=OVERRIDE-FILE In build mode, read user/group overrides from - OVERRIDE-FILE. - -u, --user=USER In build mode, set owner to USER instead of - UID 0 for files without user/group overrides. - -g, --group=USER In build mode, set group to GROUP instead of - GID 0 for files without user/group overrides. - -r, --real-owner In build mode, use the real ownership of - files without user/group overrides. + -c, --control-dir=CONTROL-DIR Extract control files into CONTROL-DIR. -f, --control-file=CONTROL-FILE Print the contents of the named control file. If this option is given multiple times, the named control files will be printed in the @@ -35,6 +23,24 @@ Options: listing. User and group IDs and names are not checked against those on the host system, since they may differ. + +Build mode: +Usage: ./opkg-opk -b -c CONTROL-DIR -d DATA-DIR [-o OVERRIDE-FILE] \ + [-u USER] [-g GROUP] [-r] PACKAGE +Options: + -b, --build Create a package from the specified + CONTROL-DIR and DATA-DIR. + -c, --control-dir=CONTROL-DIR Read control files from CONTROL-DIR. + -d, --data-dir=DATA-DIR Read data files from DATA-DIR. + -o, --ownership=OVERRIDE-FILE Read user/group overrides from OVERRIDE-FILE. + -u, --user=USER Set owner to USER instead of UID 0 for files + without user/group overrides. + -g, --group=USER Set group to GROUP instead of GID 0 for files + without user/group overrides. + -r, --real-owner Use the real ownership of files without user/ + group overrides. + +Other options: -h, --help Show this help information and exit. -V, --version Show version information and exit. -- cgit v0.9.1