summaryrefslogtreecommitdiff
path: root/client/pracro.cc
diff options
context:
space:
mode:
authordeva <deva>2010-08-17 11:35:38 +0000
committerdeva <deva>2010-08-17 11:35:38 +0000
commit8c1074e85939118ede18797bd1ce249bb6cee30d (patch)
tree10bf862aefb864fa3c0aeb88ea26cd87b5c10699 /client/pracro.cc
parent819e9d404d2a72652764970651a66c4c9849c9c9 (diff)
Make debug console available through cli param -d/--debug.
Diffstat (limited to 'client/pracro.cc')
-rw-r--r--client/pracro.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/client/pracro.cc b/client/pracro.cc
index 7ae939e..a3c56ff 100644
--- a/client/pracro.cc
+++ b/client/pracro.cc
@@ -72,6 +72,7 @@ static void print_usage()
printf(" -u, -U, --user USER Defines the requesting user(not the patient),\n"
" defaults to \""USER_DEFAULT"\"\n");
printf(" -v, --version Print version information and exit.\n");
+ printf(" -d, --debug Make debug console available.\n");
printf(" -V, --viewer TEMPLATES Show the viewer with TEMPLATES.\n");
printf(" -O, --viewer-only TEMPLATES\n");
printf(" Show the viewer only (no pracro editor window) with TEMPLATES.\n");
@@ -96,8 +97,6 @@ int main(int argc, char *argv[])
{
QApplication app(argc, argv);
- dbg_init();
-
QString macro = MACRO_DEFAULT;
QString templ = TEMPLATE_DEFAULT;
bool show_viewer = false;
@@ -136,6 +135,10 @@ int main(int argc, char *argv[])
*arg == "-c") {
config = getParam(args, arg);
}
+ else if(*arg == "--debug" ||
+ *arg == "-d") {
+ dbg_init();
+ }
else if(*arg == "--viewer" ||
*arg == "-V") {
templs = getParam(args, arg);