bin: sync usage and keep it consistent in all utils.
This commit is contained in:
		@@ -43,29 +43,29 @@ usage(bool fail)
 | 
			
		||||
	fprintf(stdout,
 | 
			
		||||
	    "Usage: xbps-install [OPTIONS] [PKGNAME...]\n\n"
 | 
			
		||||
	    "OPTIONS\n"
 | 
			
		||||
	    " -A --automatic             Set automatic installation mode\n"
 | 
			
		||||
	    " -C --config <dir>          Path to confdir (xbps.d)\n"
 | 
			
		||||
	    " -c --cachedir <dir>        Path to cachedir\n"
 | 
			
		||||
	    " -d --debug                 Debug mode shown to stderr\n"
 | 
			
		||||
	    " -D --download-only         Download packages and check integrity, nothing else\n"
 | 
			
		||||
	    " -f --force                 Force package re-installation\n"
 | 
			
		||||
	    "                            If specified twice, all files will be overwritten.\n"
 | 
			
		||||
	    " -h --help                  Print help usage\n"
 | 
			
		||||
	    " -i --ignore-conf-repos     Ignore repositories defined in xbps.d\n"
 | 
			
		||||
	    " -I --ignore-file-conflicts Ignore detected file conflicts\n"
 | 
			
		||||
	    " -U --unpack-only           Unpack packages in transaction, do not configure them\n"
 | 
			
		||||
	    " -M --memory-sync           Remote repository data is fetched and stored\n"
 | 
			
		||||
	    "                            in memory, ignoring on-disk repodata archives\n"
 | 
			
		||||
	    " -n --dry-run               Dry-run mode\n"
 | 
			
		||||
	    " -R,--repository <url>      Add repository to the top of the list\n"
 | 
			
		||||
	    "                            This option can be specified multiple times\n"
 | 
			
		||||
	    " -r --rootdir <dir>         Full path to rootdir\n"
 | 
			
		||||
	    "    --reproducible          Enable reproducible mode in pkgdb\n"
 | 
			
		||||
	    " -S --sync                  Sync remote repository index\n"
 | 
			
		||||
	    " -u --update                Update target package(s)\n"
 | 
			
		||||
	    " -v --verbose               Verbose messages\n"
 | 
			
		||||
	    " -y --yes                   Assume yes to all questions\n"
 | 
			
		||||
	    " -V --version               Show XBPS version\n");
 | 
			
		||||
	    " -A, --automatic             Set automatic installation mode\n"
 | 
			
		||||
	    " -C, --config <dir>          Path to confdir (xbps.d)\n"
 | 
			
		||||
	    " -c, --cachedir <dir>        Path to cachedir\n"
 | 
			
		||||
	    " -d, --debug                 Debug mode shown to stderr\n"
 | 
			
		||||
	    " -D, --download-only         Download packages and check integrity, nothing else\n"
 | 
			
		||||
	    " -f, --force                 Force package re-installation\n"
 | 
			
		||||
	    "                             If specified twice, all files will be overwritten.\n"
 | 
			
		||||
	    " -h, --help                  Show usage\n"
 | 
			
		||||
	    " -i, --ignore-conf-repos     Ignore repositories defined in xbps.d\n"
 | 
			
		||||
	    " -I, --ignore-file-conflicts Ignore detected file conflicts\n"
 | 
			
		||||
	    " -U, --unpack-only           Unpack packages in transaction, do not configure them\n"
 | 
			
		||||
	    " -M, --memory-sync           Remote repository data is fetched and stored\n"
 | 
			
		||||
	    "                             in memory, ignoring on-disk repodata archives\n"
 | 
			
		||||
	    " -n, --dry-run               Dry-run mode\n"
 | 
			
		||||
	    " -R, --repository <url>      Add repository to the top of the list\n"
 | 
			
		||||
	    "                             This option can be specified multiple times\n"
 | 
			
		||||
	    " -r, --rootdir <dir>         Full path to rootdir\n"
 | 
			
		||||
	    "     --reproducible          Enable reproducible mode in pkgdb\n"
 | 
			
		||||
	    " -S, --sync                  Sync remote repository index\n"
 | 
			
		||||
	    " -u, --update                Update target package(s)\n"
 | 
			
		||||
	    " -v, --verbose               Verbose messages\n"
 | 
			
		||||
	    " -y, --yes                   Assume yes to all questions\n"
 | 
			
		||||
	    " -V, --version               Show XBPS version\n");
 | 
			
		||||
	exit(fail ? EXIT_FAILURE : EXIT_SUCCESS);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user