Skip to content

Commit

Permalink
[FEATURE] Define INFO_SPACER for tabulating extended param info
Browse files Browse the repository at this point in the history
  • Loading branch information
hasherezade committed Sep 7, 2021
1 parent 423ed49 commit 8d05096
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions paramkit/include/param.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "strings_util.h"

#define PARAM_UNINITIALIZED (-1)
#define INFO_SPACER "\t "

#define PARAM_SWITCH1 '/' ///< The switch used to recognize that the given string should be treated as a parameter (variant 1)
#define PARAM_SWITCH2 '-' ///< The switch used to recognize that the given string should be treated as a parameter (variant 2)
Expand Down
2 changes: 1 addition & 1 deletion paramkit/include/params.h
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ namespace paramkit {
if (myParams.size()) {
std::map<std::string, Param*>::iterator itr = myParams.begin();
std::stringstream ss1;
ss1 << "\t Example: " << PARAM_SWITCH1 << itr->first << " ?";
ss1 << INFO_SPACER << "Example: " << PARAM_SWITCH1 << itr->first << " ?";
paramInfoP.m_extInfo = ss1.str();
}
}
Expand Down

0 comments on commit 8d05096

Please sign in to comment.