Boost logo

Boost Users :

Subject: [Boost-users] program option::force to suppy only short name
From: Lloyd (lloyd_at_[hidden])
Date: 2008-10-09 07:31:18


Hi,

I am using boost program options library

Can I supply only "short names"

eg.

options_desctiprion desc("sample");
desc.add_options()

        ("help,h","display help")
        (",c","compress")
        ;

in the case of option "c" we don't want to allow the user to supply a
long name. Howe can we do this?

Thanks,
 Lloyd

______________________________________
Scanned and protected by Email scanner


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