projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
connect works with both SSL and TCP connections YAZ-825
[yaz-moved-to-github.git]
/
zoom
/
zoomsh.c
diff --git
a/zoom/zoomsh.c
b/zoom/zoomsh.c
index
e49487b
..
37f5452
100644
(file)
--- a/
zoom/zoomsh.c
+++ b/
zoom/zoomsh.c
@@
-18,6
+18,7
@@
#include <string.h>
#include <yaz/wrbuf.h>
#include <yaz/log.h>
#include <string.h>
#include <yaz/wrbuf.h>
#include <yaz/log.h>
+#include <yaz/backtrace.h>
#include <yaz/options.h>
#if HAVE_READLINE_READLINE_H
#include <yaz/options.h>
#if HAVE_READLINE_READLINE_H
@@
-957,7
+958,7
@@
static int zoomsh(int argc, char **argv)
{
int mask;
char *arg = 0;
{
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)
{
const char *bp = arg;
switch (option_ret)
{
@@
-970,6
+971,9
@@
static int zoomsh(int argc, char **argv)
case YAZ_OPTIONS_EOF:
res = shell(&sh, exit_on_error);
break;
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;
case 'e':
exit_on_error = 1;
break;
@@
-978,7
+982,7
@@
static int zoomsh(int argc, char **argv)
yaz_log_init_level(mask);
break;
default:
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;
}
}
res = 1;
}
}
@@
-1001,7
+1005,10
@@
static int zoomsh(int argc, char **argv)
int main(int argc, char **argv)
{
int main(int argc, char **argv)
{
- int ret = zoomsh(argc, argv);
+ int ret;
+
+ yaz_enable_panic_backtrace(*argv);
+ ret = zoomsh(argc, argv);
exit(ret);
}
/*
exit(ret);
}
/*