mirror of
https://github.com/weechat/weechat.git
synced 2026-07-08 02:33:12 +02:00
Added default values for --config option
This commit is contained in:
@@ -130,11 +130,16 @@ wee_parse_args (int argc, char *argv[])
|
||||
{
|
||||
case OPTION_TYPE_BOOLEAN:
|
||||
printf (_(" . type boolean (values: 'on' or 'off')\n"));
|
||||
printf (_(" . default value: '%s'\n"),
|
||||
(weechat_options[j][k].default_int == BOOL_TRUE) ?
|
||||
"on" : "off");
|
||||
break;
|
||||
case OPTION_TYPE_INT:
|
||||
printf (_(" . type integer (values: between %d and %d)\n"),
|
||||
weechat_options[j][k].min,
|
||||
weechat_options[j][k].max);
|
||||
printf (_(" . default value: %d\n"),
|
||||
weechat_options[j][k].default_int);
|
||||
break;
|
||||
case OPTION_TYPE_INT_WITH_STRING:
|
||||
printf (_(" . type string (values: "));
|
||||
@@ -148,12 +153,21 @@ wee_parse_args (int argc, char *argv[])
|
||||
m++;
|
||||
}
|
||||
printf (")\n");
|
||||
printf (_(" . default value: '%s'\n"),
|
||||
(weechat_options[j][k].default_string) ?
|
||||
weechat_options[j][k].default_string : _("empty"));
|
||||
break;
|
||||
case OPTION_TYPE_COLOR:
|
||||
printf (_(" . type color (Curses or Gtk color, look at WeeChat doc)\n"));
|
||||
printf (_(" . default value: '%s'\n"),
|
||||
(weechat_options[j][k].default_string) ?
|
||||
weechat_options[j][k].default_string : _("empty"));
|
||||
break;
|
||||
case OPTION_TYPE_STRING:
|
||||
printf (_(" . type string (any string)\n"));
|
||||
printf (_(" . default value: '%s'\n"),
|
||||
(weechat_options[j][k].default_string) ?
|
||||
weechat_options[j][k].default_string : _("empty"));
|
||||
break;
|
||||
}
|
||||
printf (_(" . description: %s\n\n"),
|
||||
|
||||
@@ -401,8 +401,8 @@ t_config_option weechat_options_dcc[] =
|
||||
NULL, NULL, &cfg_dcc_timeout, NULL, NULL },
|
||||
{ "dcc_download_path", N_("path for incoming files with dcc"),
|
||||
N_("path for writing incoming files with dcc (default: user home)"),
|
||||
OPTION_TYPE_STRING, 0, 0, 0, "~",
|
||||
NULL, NULL, &cfg_dcc_download_path, NULL },
|
||||
OPTION_TYPE_STRING, 0, 0, 0,
|
||||
"~", NULL, NULL, &cfg_dcc_download_path, NULL },
|
||||
{ "dcc_upload_path", N_("default path for sending files with dcc"),
|
||||
N_("path for reading files when sending thru dcc (when no path is specified)"),
|
||||
OPTION_TYPE_STRING, 0, 0, 0, "~",
|
||||
|
||||
@@ -130,11 +130,16 @@ wee_parse_args (int argc, char *argv[])
|
||||
{
|
||||
case OPTION_TYPE_BOOLEAN:
|
||||
printf (_(" . type boolean (values: 'on' or 'off')\n"));
|
||||
printf (_(" . default value: '%s'\n"),
|
||||
(weechat_options[j][k].default_int == BOOL_TRUE) ?
|
||||
"on" : "off");
|
||||
break;
|
||||
case OPTION_TYPE_INT:
|
||||
printf (_(" . type integer (values: between %d and %d)\n"),
|
||||
weechat_options[j][k].min,
|
||||
weechat_options[j][k].max);
|
||||
printf (_(" . default value: %d\n"),
|
||||
weechat_options[j][k].default_int);
|
||||
break;
|
||||
case OPTION_TYPE_INT_WITH_STRING:
|
||||
printf (_(" . type string (values: "));
|
||||
@@ -148,12 +153,21 @@ wee_parse_args (int argc, char *argv[])
|
||||
m++;
|
||||
}
|
||||
printf (")\n");
|
||||
printf (_(" . default value: '%s'\n"),
|
||||
(weechat_options[j][k].default_string) ?
|
||||
weechat_options[j][k].default_string : _("empty"));
|
||||
break;
|
||||
case OPTION_TYPE_COLOR:
|
||||
printf (_(" . type color (Curses or Gtk color, look at WeeChat doc)\n"));
|
||||
printf (_(" . default value: '%s'\n"),
|
||||
(weechat_options[j][k].default_string) ?
|
||||
weechat_options[j][k].default_string : _("empty"));
|
||||
break;
|
||||
case OPTION_TYPE_STRING:
|
||||
printf (_(" . type string (any string)\n"));
|
||||
printf (_(" . default value: '%s'\n"),
|
||||
(weechat_options[j][k].default_string) ?
|
||||
weechat_options[j][k].default_string : _("empty"));
|
||||
break;
|
||||
}
|
||||
printf (_(" . description: %s\n\n"),
|
||||
|
||||
@@ -401,8 +401,8 @@ t_config_option weechat_options_dcc[] =
|
||||
NULL, NULL, &cfg_dcc_timeout, NULL, NULL },
|
||||
{ "dcc_download_path", N_("path for incoming files with dcc"),
|
||||
N_("path for writing incoming files with dcc (default: user home)"),
|
||||
OPTION_TYPE_STRING, 0, 0, 0, "~",
|
||||
NULL, NULL, &cfg_dcc_download_path, NULL },
|
||||
OPTION_TYPE_STRING, 0, 0, 0,
|
||||
"~", NULL, NULL, &cfg_dcc_download_path, NULL },
|
||||
{ "dcc_upload_path", N_("default path for sending files with dcc"),
|
||||
N_("path for reading files when sending thru dcc (when no path is specified)"),
|
||||
OPTION_TYPE_STRING, 0, 0, 0, "~",
|
||||
|
||||
Reference in New Issue
Block a user