From ee06be344cd43ac8c1331796c5a16ccfca349a25 Mon Sep 17 00:00:00 2001 From: Francesco Salvestrini Date: Tue, 7 Oct 2008 21:30:35 +0200 Subject: [PATCH] Added --verbose option to commands --- src/client/distribute.cxx | 6 +++++- src/server/beacon.cxx | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/client/distribute.cxx b/src/client/distribute.cxx index 70e540f..e19e2e3 100644 --- a/src/client/distribute.cxx +++ b/src/client/distribute.cxx @@ -91,12 +91,13 @@ int main(int argc, char * argv[]) { "job", 1, 0, 'j' }, { "time-out", 1, 0, 't' }, { "debug", 0, 0, 'd' }, + { "verbose", 0, 0, 'v' }, { "version", 0, 0, 'V' }, { "help", 0, 0, 'h' }, { 0, 0, 0, 0 } }; - c = getopt_long(argc, argv, "c:t:j:dVh", + c = getopt_long(argc, argv, "c:t:j:dvVh", long_options, &option_index); if (c == -1) { break; @@ -127,6 +128,9 @@ int main(int argc, char * argv[]) case 'd': TR_CONFIG_LVL(TR_LVL_DEBUG); break; + case 'v': + TR_CONFIG_LVL(TR_LVL_VERBOSE); + break; case 'V': version(); return 0; diff --git a/src/server/beacon.cxx b/src/server/beacon.cxx index ae7a19f..2bca5b5 100644 --- a/src/server/beacon.cxx +++ b/src/server/beacon.cxx @@ -102,12 +102,13 @@ int main(int argc, char * argv[]) { "max-mem", 1, 0, 'm' }, { "max-jobs", 1, 0, 'j' }, { "debug", 0, 0, 'd' }, + { "verbose", 0, 0, 'v' }, { "version", 0, 0, 'V' }, { "help", 0, 0, 'h' }, { 0, 0, 0, 0 } }; - c = getopt_long(argc, argv, "c:m:j:dVh", + c = getopt_long(argc, argv, "c:m:j:dvVh", long_options, &option_index); if (c == -1) { break; @@ -144,6 +145,9 @@ int main(int argc, char * argv[]) case 'd': TR_CONFIG_LVL(TR_LVL_DEBUG); break; + case 'v': + TR_CONFIG_LVL(TR_LVL_VERBOSE); + break; case 'V': version(); return 0; -- 2.11.4.GIT