<arg choice="opt">-s</arg>
<arg choice="opt">-h</arg>
<arg choice="opt">-v</arg>
- <arg choice="opt">-L <servername></arg>
<arg choice="opt">-t <encoding></arg>
<arg choice="req">config filename</arg>
<arg choice="opt">hostname hostIP</arg>
&stdarg.help;
&stdarg.version;
- <varlistentry>
- <term>-L servername</term>
- <listitem><para>Sets the value of the %L macro to <replaceable>servername</replaceable>.
- This is useful for testing include files specified with the
- %L macro. </para></listitem>
- </varlistentry>
-
<varlistentry>
<term>-v</term>
<listitem><para>If this option is specified, testparm
poptContext pc;
static char *parameter_name = NULL;
static const char *section_name = NULL;
- static char *new_local_machine = NULL;
const char *cname;
const char *caddr;
static int show_defaults;
POPT_AUTOHELP
{"suppress-prompt", 's', POPT_ARG_VAL, &silent_mode, 1, "Suppress prompt for enter"},
{"verbose", 'v', POPT_ARG_NONE, &show_defaults, 1, "Show default options too"},
- {"server", 'L',POPT_ARG_STRING, &new_local_machine, 0, "Set %%L macro to servername\n"},
{"skip-logic-checks", 'l', POPT_ARG_NONE, &skip_logic_checks, 1, "Skip the global checks"},
{"show-all-parameters", '\0', POPT_ARG_VAL, &show_all_parameters, True, "Show the parameters, type, possible values" },
{"parameter-name", '\0', POPT_ARG_STRING, ¶meter_name, 0, "Limit testparm to a named parameter" },
goto done;
}
- if (new_local_machine) {
- set_local_machine_name(new_local_machine, True);
- }
-
dbf = x_stderr;
/* Don't let the debuglevel be changed by smb.conf. */
AllowDebugChange = False;