Commit abece752 authored by Orvid King's avatar Orvid King Committed by facebook-github-bot-4

Don't use weird format specifiers

Summary: MSVC doesn't like it when you use `%1$s`, and actually emits a warning at compile time, so pass the second arugment twice instead.
Closes https://github.com/facebook/folly/pull/302

Reviewed By: @yfeldblum

Differential Revision: D2371262

Pulled By: @JoelMarcey
parent 6c2044f2
...@@ -130,8 +130,8 @@ void NestedCommandLineApp::displayHelp( ...@@ -130,8 +130,8 @@ void NestedCommandLineApp::displayHelp(
// Help for a given command // Help for a given command
auto& p = findCommand(args.front()); auto& p = findCommand(args.front());
if (p.first != args.front()) { if (p.first != args.front()) {
printf("`%1$s' is an alias for `%2$s'; showing help for `%2$s'\n", printf("`%s' is an alias for `%s'; showing help for `%s'\n",
args.front().c_str(), p.first.c_str()); args.front().c_str(), p.first.c_str(), p.first.c_str());
} }
auto& info = p.second; auto& info = p.second;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment