File: test_package.cpp

package info (click to toggle)
argh 1.3.2%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 244 kB
  • sloc: cpp: 970; python: 24; makefile: 13
file content (14 lines) | stat: -rw-r--r-- 272 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>

#include <argh.h>

int main(int argc, char* argv[])
{
    argh::parser cmdl;
    cmdl.parse(argc, argv, argh::parser::PREFER_PARAM_FOR_UNREG_OPTION);

    if (cmdl["-v"])
        std::cout << "Verbose, I am." << std::endl;

    return EXIT_SUCCESS;
}