<refsynopsisdiv>
<cmdsynopsis>
<command>zoomsh</command>
+ <arg choice="opt"><option>-a <replaceable>apdufile</replaceable></option></arg>
<arg choice="opt"><option>-e</option></arg>
<arg choice="opt"><option>-v <replaceable>loglevel</replaceable></option></arg>
<arg choice="opt" rep="repeat">commands</arg>
<title>OPTIONS</title>
<variablelist>
<varlistentry>
+ <term>-a <replaceable>apdufile</replaceable></term>
+ <listitem><para>
+ Logs protocol packages into apdufile (APDU log).
+ </para></listitem>
+ </varlistentry>
+ <varlistentry>
<term>-e</term>
<listitem><para>
Makes zoomsh stop processing commands as soon as an error occur.
<varlistentry>
<term>-v <replaceable>loglevel</replaceable></term>
<listitem><para>
- Sets YAZ log level.
+ Sets YAZ log level to <replaceable>loglevel</replaceable>.
</para></listitem>
</varlistentry>
</variablelist>
{
int mask;
char *arg = 0;
- int option_ret = options("ev:", argv, argc, &arg);
+ int option_ret = options("a:ev:", argv, argc, &arg);
const char *bp = arg;
switch (option_ret)
{
case YAZ_OPTIONS_EOF:
res = shell(&sh, exit_on_error);
break;
+ case 'a':
+ ZOOM_options_set(sh.options, "apdufile", arg);
+ break;
case 'e':
exit_on_error = 1;
break;
yaz_log_init_level(mask);
break;
default:
- fprintf(stderr, "zoomsh: [-e] [-v] [commands]\n");
+ fprintf(stderr, "zoomsh: [-a apdulog] [-e] [-v level] [commands]\n");
res = 1;
}
}