diff --git a/bin/xbps-uhelper/main.c b/bin/xbps-uhelper/main.c index 3a5a64b8..cb9922b9 100644 --- a/bin/xbps-uhelper/main.c +++ b/bin/xbps-uhelper/main.c @@ -41,34 +41,30 @@ static void __attribute__((noreturn)) usage(void) { fprintf(stdout, - "usage: xbps-uhelper [options] [action] [args]\n" - "\n" - " Available actions:\n" - " binpkgarch, binpkgver, cmpver, getpkgdepname,\n" - " getpkgname, getpkgrevision, getpkgversion, pkgmatch, version,\n" - " real-version, arch, getsystemdir, getname, getversion\n" - "\n" - " Action arguments:\n" - " binpkgarch ...\n" - " binpkgver ...\n" - " cmpver \n" - " getpkgdepname ...\n" - " getpkgdepversion ...\n" - " getpkgname ...\n" - " getpkgrevision ...\n" - " getpkgversion ...\n" - " getname ...\n" - " getversion ...\n" - " pkgmatch \n" - " version ...\n" - " real-version ...\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 \n" - " -V, --version Prints the xbps release version\n"); - + "Usage: xbps-uhelper [OPTIONS] [MODE] [ARGUMENTS]\n\n" + "OPTIONS\n" + " -C --config Path to confdir (xbps.d)\n" + " -d --debug Debug mode shown to stderr\n" + " -r --rootdir Full path to rootdir\n" + " -V --version Show XBPS verison\n" + "\n" + "MODE\n" + " arch Prints the configured XBPS architecture\n" + " binpkgarch Prints the architecture of binpkg names\n" + " binpkgver Prints the pkgver of binpkg names\n" + " cmpver Compare two version strings\n" + " getname Prints pkgname from pkgvers or dependencies\n" + " getpkgdepname Prints pkgname from dependencies\n" + " getpkgdepversion Prints version constraint from dependencies\n" + " getpkgname Prints pkgname from pkgvers\n" + " getpkgrevision Prints revision from pkgvers\n" + " getpkgversion Prints version from pkgvers\n" + " getversion Prints version from patterns or pkgvers\n" + " pkgmatch Match pkgver against dependency\n" + " real-version Prints version of installed real packages\n" + " version Prints version of installed packages\n" + " getsystemdir Prints the system xbps.d directory\n" + ); exit(EXIT_FAILURE); }