summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-08-30 19:19:36 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-08-30 19:19:36 +0100
commitb0ddd74a0545bffe196de7539e0195b7cf3a6df6 (patch)
treefb0840d0f92a494e5fce2d2bda0dd4363d52250a /main
parentFix up all remaining warnings (diff)
downloadmygrate-b0ddd74a0545bffe196de7539e0195b7cf3a6df6.tar.bz2
mygrate-b0ddd74a0545bffe196de7539e0195b7cf3a6df6.tar.xz
mygrate-b0ddd74a0545bffe196de7539e0195b7cf3a6df6.zip
Disable clang formatting on helpHEADmain
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp9
1 files changed, 6 insertions, 3 deletions
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);