X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=zoom%2Fzoomsh.c;h=fa4c0f8a7408379a49527ba3f4c9ab486cf25a20;hp=e49487b7f6c6334876182e3a2b6f7d903007a130;hb=d9849e03a9313647aa81846cf9cb05a06394e9ea;hpb=a2a4b952e0742e1527fcb8c9a0e6c85fe35c65f8 diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index e49487b..fa4c0f8 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -957,7 +957,7 @@ static int zoomsh(int argc, char **argv) { 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) { @@ -970,6 +970,9 @@ static int zoomsh(int argc, char **argv) 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; @@ -978,7 +981,7 @@ static int zoomsh(int argc, char **argv) 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; } }