kopia lustrzana https://gitlab.com/sane-project/backends
Add short help message to saned
rodzic
4fc171100d
commit
fab378a681
|
@ -10,6 +10,7 @@ saned \- SANE network daemon
|
||||||
.I [ n ]
|
.I [ n ]
|
||||||
.B | \-s
|
.B | \-s
|
||||||
.I [ n ]
|
.I [ n ]
|
||||||
|
.B | \-h
|
||||||
.B ]
|
.B ]
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.B saned
|
.B saned
|
||||||
|
@ -61,6 +62,10 @@ requests using syslog.
|
||||||
If
|
If
|
||||||
.B saned
|
.B saned
|
||||||
is run from inetd, xinetdi or systemd, no option can be given.
|
is run from inetd, xinetdi or systemd, no option can be given.
|
||||||
|
.PP
|
||||||
|
The
|
||||||
|
.B \-h
|
||||||
|
flag displays a short help message.
|
||||||
.SH CONFIGURATION
|
.SH CONFIGURATION
|
||||||
First and foremost:
|
First and foremost:
|
||||||
.B saned
|
.B saned
|
||||||
|
|
|
@ -3285,6 +3285,15 @@ main (int argc, char *argv[])
|
||||||
}
|
}
|
||||||
else if (strncmp (argv[1], "-s", 2) == 0)
|
else if (strncmp (argv[1], "-s", 2) == 0)
|
||||||
run_mode = SANED_RUN_DEBUG;
|
run_mode = SANED_RUN_DEBUG;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
printf ("Usage: saned [ -a [ username ] | -d [ n ] | -s [ n ] ] | -h\n");
|
||||||
|
if ((strncmp (argv[1], "-h", 2) == 0) ||
|
||||||
|
(strncmp (argv[1], "--help", 6) == 0))
|
||||||
|
exit (EXIT_SUCCESS);
|
||||||
|
else
|
||||||
|
exit (EXIT_FAILURE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (run_mode == SANED_RUN_DEBUG)
|
if (run_mode == SANED_RUN_DEBUG)
|
||||||
|
|
Ładowanie…
Reference in New Issue