bin: print usage() in stdout.
(cherry picked from commit b090e1a0bd32cabd8fe81bd756d419ee4b170ef7)
This commit is contained in:
parent
c39c1e5751
commit
7714f0f6c5
@ -43,7 +43,7 @@ static struct xbps_handle xh;
|
|||||||
static void __attribute__((noreturn))
|
static void __attribute__((noreturn))
|
||||||
usage(bool fail)
|
usage(bool fail)
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fprintf(stdout,
|
||||||
"Usage: xbps-bin [options] target [arguments]\n\n"
|
"Usage: xbps-bin [options] target [arguments]\n\n"
|
||||||
"[options]\n"
|
"[options]\n"
|
||||||
" -A Enable Automatic installation (shown as orphan)\n"
|
" -A Enable Automatic installation (shown as orphan)\n"
|
||||||
|
@ -58,7 +58,7 @@ static const char *destdir;
|
|||||||
static void __attribute__((noreturn))
|
static void __attribute__((noreturn))
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fprintf(stdout,
|
||||||
"usage: %s [options] [file1] [file2] ...\n\n"
|
"usage: %s [options] [file1] [file2] ...\n\n"
|
||||||
" Options:\n"
|
" Options:\n"
|
||||||
" -A, --architecture Package architecture (e.g: noarch, i686, etc).\n"
|
" -A, --architecture Package architecture (e.g: noarch, i686, etc).\n"
|
||||||
|
@ -100,7 +100,7 @@ die(const char *fmt, ...)
|
|||||||
static void __attribute__((noreturn))
|
static void __attribute__((noreturn))
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fprintf(stdout,
|
||||||
"Usage: xbps-dgraph [options] <pkgname>\n\n"
|
"Usage: xbps-dgraph [options] <pkgname>\n\n"
|
||||||
" Options\n"
|
" Options\n"
|
||||||
" -c\t\tPath to configuration file\n"
|
" -c\t\tPath to configuration file\n"
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
static void __attribute__((noreturn))
|
static void __attribute__((noreturn))
|
||||||
usage(bool fail)
|
usage(bool fail)
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fprintf(stdout,
|
||||||
"Usage: xbps-repo [options] target [arguments]\n\n"
|
"Usage: xbps-repo [options] target [arguments]\n\n"
|
||||||
"[options]\n"
|
"[options]\n"
|
||||||
" -C file Full path to configuration file\n"
|
" -C file Full path to configuration file\n"
|
||||||
|
@ -60,7 +60,7 @@ write_plist_file(prop_dictionary_t dict, const char *file)
|
|||||||
static void __attribute__((noreturn))
|
static void __attribute__((noreturn))
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fprintf(stdout,
|
||||||
"usage: xbps-uhelper [options] [action] [args]\n"
|
"usage: xbps-uhelper [options] [action] [args]\n"
|
||||||
"\n"
|
"\n"
|
||||||
" Available actions:\n"
|
" Available actions:\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user