Boost logo

Boost Users :

Subject: Re: [Boost-users] commandline args
From: Shaolin (shaolinfinest_at_[hidden])
Date: 2009-08-23 21:08:54


Ok, I have managed to get it to work, however, the file param only accepts
one value. How can I get several different values for one param ? e.g.
--file file1.txt file2.txt file3.txt

        if (vm.count("file")) {
            cout << "Files selected: ";
            vector<string> files = vm["file"].as< vector<string> >();
            for(int i=0; i<files.size(); ++i) {
                cout << files[i];
            }
            cout << "\n";
        }

2009/8/24 OvermindDL1 <overminddl1_at_[hidden]>

> On Sun, Aug 23, 2009 at 6:36 PM, OvermindDL1<overminddl1_at_[hidden]> wrote:
> > LLVM.
> Er, ignore that, was typing up 3 emails at the same time and got my
> wires crossed, I mean Boost.Program_Options. :)
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net