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 ]
|
||||
.B | \-s
|
||||
.I [ n ]
|
||||
.B | \-h
|
||||
.B ]
|
||||
.SH DESCRIPTION
|
||||
.B saned
|
||||
|
@ -61,6 +62,10 @@ requests using syslog.
|
|||
If
|
||||
.B saned
|
||||
is run from inetd, xinetdi or systemd, no option can be given.
|
||||
.PP
|
||||
The
|
||||
.B \-h
|
||||
flag displays a short help message.
|
||||
.SH CONFIGURATION
|
||||
First and foremost:
|
||||
.B saned
|
||||
|
|
|
@ -3285,6 +3285,15 @@ main (int argc, char *argv[])
|
|||
}
|
||||
else if (strncmp (argv[1], "-s", 2) == 0)
|
||||
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)
|
||||
|
|
Ładowanie…
Reference in New Issue