From b0ddd74a0545bffe196de7539e0195b7cf3a6df6 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 30 Aug 2021 19:19:36 +0100 Subject: Disable clang formatting on help --- main/main.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'main') diff --git a/main/main.cpp b/main/main.cpp index 815ca67..1df8f29 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -17,9 +17,12 @@ main(int argc, char ** argv) uint64_t sourceid {}; bool help {}; po::options_description opts("MyGrate"); - opts.add_options()("postgresql,p", po::value(&pgconn)->required(), "Target PostgreSQL connection string")( - "sourceid,s", po::value(&sourceid)->default_value(1), "Source identifier")("help,h", - po::value(&help)->zero_tokens(), "Help"); + // clang-format off + opts.add_options() + ("postgresql,p", po::value(&pgconn)->required(), "Target PostgreSQL connection string") + ("sourceid,s", po::value(&sourceid)->default_value(1), "Source identifier") + ("help,h", po::value(&help)->zero_tokens(), "Help"); + // clang-format on po::variables_map vm; po::store(po::command_line_parser(argc, argv).options(opts).run(), vm); -- cgit v1.2.3