• Fixes #39. Closes #40. This is an overhaul of the way that integer
    arguments are parsed. Instead of using std::istream, which allows,
    for example, negative integers for unsigned types, we use our own
    parser.
    
    This allows us to do proper range checking depending on the type,
    and to correctly check for negative values passed to unsigned types.
    
    This also allows the handling of base 16 numbers.
    Jarryd Beck authored
     
    Browse File »






  • Fixes #33.
    
    This PR uses cmake's interface library feature:
    
      An INTERFACE library target does not directly create build output,
      though it may have properties set on it and it may be installed,
      exported and imported.
    
    This makes it easier to include the header only library in a cmake
    project. After using add_subdirectory on the cxxopts directory, one
    simply needs to include cxxopts in their target_link_libraries, which
    will allow the user's target to inherit the properties of the cxxopts
    header library (see changes to example and test).
    Mario Badr authored
     
    Browse File »