Commit 8234766bcadabd32fb548a4b2a4c5a18bff8a864

Authored by Jarryd Beck
1 parent 3707c91a

better help example

Showing 1 changed file with 2 additions and 1 deletions
src/example.cpp
@@ -48,7 +48,8 @@ int main(int argc, char* argv[]) @@ -48,7 +48,8 @@ int main(int argc, char* argv[])
48 ("help", "Print help") 48 ("help", "Print help")
49 ("int", "An integer", cxxopts::value<int>()) 49 ("int", "An integer", cxxopts::value<int>())
50 ("option_that_is_too_long_for_the_help", "A very long option") 50 ("option_that_is_too_long_for_the_help", "A very long option")
51 - ("unicode", u8"A help option with an accent: à") 51 + ("unicode", u8"A help option with non-ascii: à. Here the length of the"
  52 + " string should be correct")
52 ; 53 ;
53 54
54 options.add_options("Group") 55 options.add_options("Group")