Re: Adding arguments to the options

2013-06-05 Thread Wayne Davison
On Mon, Jun 3, 2013 at 10:33 AM, Ajay Tanpure wrote: > {"https", 'N', POPT_ARG_VAL, &https_port_s, 0, 0, 0}} > > You can find popt documentation here: http://linux.die.net/man/3/popt As that page indicates, POPT_ARG_VAL sets an int var-ptr to an int value supplied in your structure (which is 0 a

Adding arguments to the options

2013-06-03 Thread Ajay Tanpure
Hello, I am developing an application which uses the Rsync. I have added an option for HTTPS in rsync code like '-v' for "--verbose". But now I want to make that option to take the arguments. For that in options.c file, I have added the entry in the array of structure as, > static struct pop