Skip to content

Commit

Permalink
Do not show freq parameter on help when not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonzalo de Pedro committed Dec 12, 2018
1 parent f2a1d9f commit 515f07e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion image_tools/src/options.cpp
Expand Up @@ -61,7 +61,9 @@ bool parse_command_options(
ss << " 1 - reliable (default)" << std::endl;
ss << " -d: Depth of the queue: only honored if used together with 'keep last'. " <<
"10 (default)" << std::endl;
ss << " -f: Publish frequency in Hz. 30 (default)" << std::endl;
if (freq != nullptr) {
ss << " -f: Publish frequency in Hz. 30 (default)" << std::endl;
}
ss << " -k: History QoS setting:" << std::endl;
ss << " 0 - only store up to N samples, configurable via the queue depth (default)" <<
std::endl;
Expand Down

0 comments on commit 515f07e

Please sign in to comment.