Browse Source

update: help message

dev
Dnomd343 2 years ago
parent
commit
11ab493fcc
  1. 15
      include/constant.h
  2. 2
      src/cleardns.c

15
include/constant.h

@ -12,7 +12,7 @@
#define DIVERTER_TIMEOUT 6
#define VERSION "1.3.0-beta"
#define VERSION "1.3.0-beta1"
#define CONFIG_FILE "cleardns.yml"
#define ADGUARD_USER "admin"
@ -42,10 +42,15 @@
#define EXIT_WAIT_ERROR 3
#define HELP_MSG "\
ClearDNS usage \n\
--debug ...\n\
--config ...\n\
--help ...\n\
ClearDNS usage:\n\
\n\
Command: ./cleardns [OPTIONS]\n\
\n\
Options:\n\
--debug Enable debug mode.\n\
--config Specify config file. (default: cleardns.yml)\n\
--version Show version information.\n\
--help Print this message.\n\
"
#endif

2
src/cleardns.c

@ -1,8 +1,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/wait.h>
#include <unistd.h>
#include <sys/wait.h>
#include "loader.h"
#include "logger.h"
#include "sundry.h"

Loading…
Cancel
Save