better comments and help for changed config service URL

This commit is contained in:
john30
2018-04-04 10:19:54 +02:00
parent b410872a97
commit 42d096001f
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -183,7 +183,7 @@ static const struct argp_option argpoptions[] = {
{"latency", O_DEVLAT, "USEC", 0, "Transfer latency in us [0 for USB, 10000 for IP]", 0 },
{NULL, 0, NULL, 0, "Message configuration options:", 2 },
{"configpath", 'c', "PATH", 0, "Read CSV config files from PATH [" CONFIG_PATH "]", 0 },
{"configpath", 'c', "PATH", 0, "Read CSV config files from PATH (local folder or HTTP URL) [" CONFIG_PATH "]", 0 },
{"scanconfig", 's', "ADDR", OPTION_ARG_OPTIONAL, "Pick CSV config files matching initial scan (ADDR="
"\"none\" or empty for no initial scan message, \"full\" for full scan, or a single hex address to scan, "
"default is broadcast ident message). If combined with --checkconfig, you can add scan message data as "
@@ -296,7 +296,7 @@ error_t parse_opt(int key, char *arg, struct argp_state *state) {
break;
// Message configuration options:
case 'c': // --configpath=/etc/ebusd
case 'c': // --configpath=http://ebusd.eu/config/
if (arg == NULL || arg[0] == 0 || strcmp("/", arg) == 0) {
argp_error(state, "invalid configpath");
return EINVAL;
+1 -1
View File
@@ -40,7 +40,7 @@ struct options {
bool initialSend; //!< send an initial escape symbol after connecting device
int latency; //!< transfer latency in us [0 for USB, 10000 for IP]
const char* configPath; //!< path to CSV configuration files [/etc/ebusd]
const char* configPath; //!< path to CSV configuration files [http://ebusd.eu/config/]
bool scanConfig; //!< pick configuration files matching initial scan
/** the initial address to scan for scanconfig
* (@a ESC=none, 0xfe=broadcast ident, @a SYN=full scan, else: single slave address). */