bin/xbps-uhelper: format usage like other xbps binaries
This commit is contained in:
parent
e0317cc6d7
commit
be2525adc0
@ -41,34 +41,30 @@ static void __attribute__((noreturn))
|
|||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
fprintf(stdout,
|
fprintf(stdout,
|
||||||
"usage: xbps-uhelper [options] [action] [args]\n"
|
"Usage: xbps-uhelper [OPTIONS] [MODE] [ARGUMENTS]\n\n"
|
||||||
|
"OPTIONS\n"
|
||||||
|
" -C --config <dir> Path to confdir (xbps.d)\n"
|
||||||
|
" -d --debug Debug mode shown to stderr\n"
|
||||||
|
" -r --rootdir <dir> Full path to rootdir\n"
|
||||||
|
" -V --version Show XBPS verison\n"
|
||||||
"\n"
|
"\n"
|
||||||
" Available actions:\n"
|
"MODE\n"
|
||||||
" binpkgarch, binpkgver, cmpver, getpkgdepname,\n"
|
" arch Prints the configured XBPS architecture\n"
|
||||||
" getpkgname, getpkgrevision, getpkgversion, pkgmatch, version,\n"
|
" binpkgarch <binpkg...> Prints the architecture of binpkg names\n"
|
||||||
" real-version, arch, getsystemdir, getname, getversion\n"
|
" binpkgver <binpkg...> Prints the pkgver of binpkg names\n"
|
||||||
"\n"
|
" cmpver <version> <version> Compare two version strings\n"
|
||||||
" Action arguments:\n"
|
" getname <pkgver|dep...> Prints pkgname from pkgvers or dependencies\n"
|
||||||
" binpkgarch <binpkg> ...\n"
|
" getpkgdepname <dep...> Prints pkgname from dependencies\n"
|
||||||
" binpkgver <binpkg> ...\n"
|
" getpkgdepversion <dep...> Prints version constraint from dependencies\n"
|
||||||
" cmpver <instver> <reqver>\n"
|
" getpkgname <pkgver...> Prints pkgname from pkgvers\n"
|
||||||
" getpkgdepname <string> ...\n"
|
" getpkgrevision <pkgver...> Prints revision from pkgvers\n"
|
||||||
" getpkgdepversion <string> ...\n"
|
" getpkgversion <pkgver...> Prints version from pkgvers\n"
|
||||||
" getpkgname <string> ...\n"
|
" getversion <pkgver|dep...> Prints version from patterns or pkgvers\n"
|
||||||
" getpkgrevision <string> ...\n"
|
" pkgmatch <pkgver> <dep> Match pkgver against dependency\n"
|
||||||
" getpkgversion <string> ...\n"
|
" real-version <pkgname...> Prints version of installed real packages\n"
|
||||||
" getname <string> ...\n"
|
" version <pkgname...> Prints version of installed packages\n"
|
||||||
" getversion <string> ...\n"
|
" getsystemdir Prints the system xbps.d directory\n"
|
||||||
" pkgmatch <pkg-version> <pkg-pattern>\n"
|
);
|
||||||
" version <pkgname> ...\n"
|
|
||||||
" real-version <pkgname> ...\n"
|
|
||||||
"\n"
|
|
||||||
" Options shared by all actions:\n"
|
|
||||||
" -C, --config Path to xbps.conf file.\n"
|
|
||||||
" -d, --debug Debugging messages to stderr.\n"
|
|
||||||
" -r, --rootdir <rootdir>\n"
|
|
||||||
" -V, --version Prints the xbps release version\n");
|
|
||||||
|
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user