Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 08e2266b rédigé par Kubat's avatar Kubat
Parcourir les fichiers

Update help and manpages

parent a565dff1
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!87Resolve "Segfault on exit"
...@@ -25,11 +25,15 @@ commands from: ...@@ -25,11 +25,15 @@ commands from:
.PD 0 .PD 0
.TP .TP
.PD .PD
\fB\-\-help\fP / \fB\-h\fP \fB\-h\fP
Prints the help message. Prints the help message.
.TP .TP
\fB\-\-version\fP / \fB\-v\fP \fB\-f\fP <config-file>
Print the version of the lektor daemon. Specify a config file manually.
.TP
\fB\-F\fP
Don't check if the database is not already opened by another instance.
Usefull in case of non-really-clean shutdown of lektord.
.PP .PP
If the lektor daemon is launched without a configuration file, it will exit If the lektor daemon is launched without a configuration file, it will exit
with the code \fB1\fP. To init the default configuration file (normally done with the code \fB1\fP. To init the default configuration file (normally done
...@@ -39,7 +43,7 @@ by meson during the install), you should just use: ...@@ -39,7 +43,7 @@ by meson during the install), you should just use:
.nf .nf
\fB \fB
% mkdir ~/.config/lektor/ % mkdir ~/.config/lektor/
% lktadm init conf > ~/.config/lektor/lektor.ini % lkt admin config > ~/.config/lektor/lektor.ini
% lektord % lektord
.fi \fR .fi \fR
.P .P
......
...@@ -49,7 +49,7 @@ main(int argc, char *argv[]) ...@@ -49,7 +49,7 @@ main(int argc, char *argv[])
goto normal_launch; goto normal_launch;
/* Check args */ /* Check args */
while ((opt = getopt(argc, argv, "Ff:")) != -1) { while ((opt = getopt(argc, argv, "hFf:")) != -1) {
switch (opt) { switch (opt) {
case 'F': case 'F':
check_exclusive = 0; check_exclusive = 0;
...@@ -57,6 +57,7 @@ main(int argc, char *argv[]) ...@@ -57,6 +57,7 @@ main(int argc, char *argv[])
case 'f': case 'f':
strncpy(conf_file, optarg, PATH_MAX); strncpy(conf_file, optarg, PATH_MAX);
break; break;
case 'h':
default: default:
help__(); help__();
exit(EXIT_SUCCESS); exit(EXIT_SUCCESS);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter