[fpc-pascal] Using flag field in Getopts

luciano de souza luchyanus at gmail.com
Tue Oct 30 11:05:09 CET 2012


Hello listers,
Getopts offers very good features to process commandline arguments. As
far as I could understand, I used it successfully. But it remains one
unknown aspect for me. What is the field "flag"" of TOption record?
How to use it?

  TOption = Record
    Name    : String;
    Has_arg : Integer;
    Flag    : PChar;
    Value   : Char;
  end;

Best regards,
Luciano



More information about the fpc-pascal mailing list