newline in command docs

This commit is contained in:
Erik Frojdh
2020-08-25 14:46:06 +02:00
parent 0f80079d16
commit 0253933271
3 changed files with 5 additions and 5 deletions

View File

@ -48,7 +48,7 @@ int main() {
auto tmp = os.str().erase(0, cmd.size()); auto tmp = os.str().erase(0, cmd.size());
auto usage = tmp.substr(0, tmp.find_first_of('\n')); auto usage = tmp.substr(0, tmp.find_first_of('\n'));
tmp.erase(0, usage.size()); 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"; fs << '\t' << cmd << usage << help << "\n";
} }
} }

View File

@ -182,7 +182,7 @@ std::string CmdProxy::VirtualServer(int action) {
std::string CmdProxy::Acquire(int action) { std::string CmdProxy::Acquire(int action) {
std::ostringstream os; std::ostringstream os;
if (action == defs::HELP_ACTION) { 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 { } else {
if (det->empty()) { if (det->empty()) {
throw sls::RuntimeError( throw sls::RuntimeError(
@ -1612,7 +1612,7 @@ std::string CmdProxy::VetoPhoton(int action) {
os << "[ichip] [#photons] [energy in keV] [reference " os << "[ichip] [#photons] [energy in keV] [reference "
"file]\n\t[Gotthard2] Set veto reference for 128 channels for " "file]\n\t[Gotthard2] Set veto reference for 128 channels for "
"chip ichip according to reference file and #photons and energy " "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 " << "[ichip] [output file]\n\t Get gain indices and veto reference "
"for 128 channels for chip ichip, saved to file." "for 128 channels for chip ichip, saved to file."
<< '\n'; << '\n';

View File

@ -1691,7 +1691,7 @@ class CmdProxy {
StringTo<int>, StringTo<int>,
"[n]\n\tDefault is 50002.\n\t[Jungfrau] Port number of the receiver " "[n]\n\tDefault is 50002.\n\t[Jungfrau] Port number of the receiver "
"(destination) udp interface where the second half of detector data is " "(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."); "interface where the right half of the detector data is sent to.");
EXECUTE_SET_COMMAND( EXECUTE_SET_COMMAND(