From 5fa98cdabb89a772e138c9e68b475f33458c8ef0 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Mon, 12 Dec 2011 20:46:24 +0000 Subject: kfw leash: add -console option to create console for debug output Signed-off-by: Kevin Wasserman ticket: 7050 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25570 dc483132-0cff-0310-8789-dd5450dbe970 --- src/windows/leash/Leash.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/windows/leash/Leash.cpp') diff --git a/src/windows/leash/Leash.cpp b/src/windows/leash/Leash.cpp index 88ee7356a..1f12e913e 100644 --- a/src/windows/leash/Leash.cpp +++ b/src/windows/leash/Leash.cpp @@ -26,6 +26,7 @@ #include "mitwhich.h" #include #include "lglobals.h" +#include "out2con.h" #include #include @@ -305,6 +306,11 @@ BOOL CLeashApp::InitInstance() { autoInit = TRUE; } + else if (0 == stricmp(optionParam+1, "console") || + 0 == stricmp(optionParam+1, "c")) + { + CreateConsoleEcho(); + } else { MessageBox(hMsg, @@ -312,6 +318,7 @@ BOOL CLeashApp::InitInstance() "'-renew' or '-r' to perform ticket renewal (and exit)\n" "'-destroy' or '-d' to perform ticket destruction (and exit)\n" "'-autoinit' or '-a' to perform automatic ticket initialization\n" + "'-console' or '-c' to attach a console for debugging\n" "'-ms2mit' or '-import' or '-m' to perform ticket importation (and exit)", "Leash Error", MB_OK); return FALSE; -- cgit