summaryrefslogtreecommitdiff
path: root/tests/file/driver.cxx
blob: de2a15138a6b3de2880666f551f7ba2e71d79e47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// file      : tests/file/driver.cxx
// author    : Boris Kolpackov <boris@codesynthesis.com>
// copyright : Copyright (c) 2009-2017 Code Synthesis Tools CC
// license   : MIT; see accompanying LICENSE file

// Test argv_file_scanner.
//

#include <iostream>

#include "test.hxx"

using namespace std;

int
main (int argc, char* argv[])
{
  try
  {
    cli::argv_file_scanner s (argc, argv, "--file");

    while (s.more ())
      cout << s.next () << endl;
  }
  catch (const cli::exception& e)
  {
    cerr << e << endl;
  }
}