From 025393327171c41eeb7cb3147d0e51b5e21d1af6 Mon Sep 17 00:00:00 2001 From: Erik Frojdh Date: Tue, 25 Aug 2020 14:46:06 +0200 Subject: [PATCH] newline in command docs --- docs/src/gendoc.cpp | 4 ++-- slsDetectorSoftware/src/CmdProxy.cpp | 4 ++-- slsDetectorSoftware/src/CmdProxy.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/src/gendoc.cpp b/docs/src/gendoc.cpp index e5e05571a..d7742edeb 100644 --- a/docs/src/gendoc.cpp +++ b/docs/src/gendoc.cpp @@ -48,7 +48,7 @@ int main() { auto tmp = os.str().erase(0, cmd.size()); auto usage = tmp.substr(0, tmp.find_first_of('\n')); tmp.erase(0, usage.size()); - auto help = replace_all(tmp, "\n\t", "\n\t\t"); + auto help = replace_all(tmp, "\n\t", "\n\t\t| "); fs << '\t' << cmd << usage << help << "\n"; } -} \ No newline at end of file +} diff --git a/slsDetectorSoftware/src/CmdProxy.cpp b/slsDetectorSoftware/src/CmdProxy.cpp index 572bc2421..87da98f8a 100644 --- a/slsDetectorSoftware/src/CmdProxy.cpp +++ b/slsDetectorSoftware/src/CmdProxy.cpp @@ -182,7 +182,7 @@ std::string CmdProxy::VirtualServer(int action) { std::string CmdProxy::Acquire(int action) { std::ostringstream os; if (action == defs::HELP_ACTION) { - os << cmd << " - Acquire the number of frames set up.\n"; + os << cmd << "\n\tAcquire the number of frames set up.\n"; } else { if (det->empty()) { throw sls::RuntimeError( @@ -1612,7 +1612,7 @@ std::string CmdProxy::VetoPhoton(int action) { os << "[ichip] [#photons] [energy in keV] [reference " "file]\n\t[Gotthard2] Set veto reference for 128 channels for " "chip ichip according to reference file and #photons and energy " - "in keV.\n" + "in keV.\n\t" << "[ichip] [output file]\n\t Get gain indices and veto reference " "for 128 channels for chip ichip, saved to file." << '\n'; diff --git a/slsDetectorSoftware/src/CmdProxy.h b/slsDetectorSoftware/src/CmdProxy.h index 75565d58e..3168a2d59 100644 --- a/slsDetectorSoftware/src/CmdProxy.h +++ b/slsDetectorSoftware/src/CmdProxy.h @@ -1691,7 +1691,7 @@ class CmdProxy { StringTo, "[n]\n\tDefault is 50002.\n\t[Jungfrau] Port number of the receiver " "(destination) udp interface where the second half of detector data is " - "sent to. \n[Eiger] Port number of the reciever (desintation) udp " + "sent to. \n\t[Eiger] Port number of the reciever (desintation) udp " "interface where the right half of the detector data is sent to."); EXECUTE_SET_COMMAND(