Subversion Repositories Tewi

Rev

Rev 117 | Rev 168 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 117 Rev 119
Line 1... Line 1...
1
/* $Id: main.c 117 2024-09-21 08:47:51Z nishi $ */
1
/* $Id: main.c 119 2024-09-21 09:05:03Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "../config.h"
5
#include "../config.h"
6
 
6
 
Line 130... Line 130...
130
					printf("Tewi HTTPd Tewi/%s\n", tw_get_version());
130
					printf("Tewi HTTPd Tewi/%s\n", tw_get_version());
131
					printf("Under public domain.\n");
131
					printf("Under public domain.\n");
132
					printf("Original by 2024 Nishi\n");
132
					printf("Original by 2024 Nishi\n");
133
					printf("\n");
133
					printf("\n");
134
					printf("Usage: %s [--config|-C config] [--verbose|-v] [--version|-V]\n", argv[0]);
134
					printf("Usage: %s [--config|-C config] [--verbose|-v] [--version|-V]\n", argv[0]);
135
					printf("--config  | -C config     : Specify config\n");
135
					printf("--config  | -C config      : Specify config\n");
-
 
136
					printf("--logfile | -l logfile     : Specify logfile\n");
136
					printf("--verbose | -v            : Verbose mode\n");
137
					printf("--verbose | -v             : Verbose mode\n");
137
					printf("--version | -V            : Version information\n");
138
					printf("--version | -V             : Version information\n");
138
					return 0;
139
					return 0;
139
				} else {
140
				} else {
140
					fprintf(stderr, "Unknown option: %s\n", argv[i]);
141
					fprintf(stderr, "Unknown option: %s\n", argv[i]);
141
					return 1;
142
					return 1;
142
				}
143
				}