huntzhan / clidoc

Prove Of Conecept Fork Of Docopt.
MIT License
7 stars 1 forks source link

Implement the C++11 interface of `clidoc`; Reorganize source files. #38

Closed huntzhan closed 9 years ago

huntzhan commented 9 years ago
#include "clidoc/cpp11.h"

int main(int argc, char *argv[]) {
  // if `clidoc::ParseArguments` detect error, the program would be terminated.
  clidoc::ParseArguments(argc, argv);
  // `clidoc::boolean_outcome`, `clidoc::string_outcome`, `clidoc::string_list_outcome` are ready.
}