* Tong *
2006-10-03 01:10:12 UTC
Hi,
Any way that I can use single dash with long options with getopt(1)?
Eg, when using Perl Getopt::Long, for long option --title, I can abbreviate
it to -t, as long as the abbreviation is not ambiguous. But I found that I
have to use --t for getopt(1). Any way I can use single dash instead?
The getopt(1) man page hinted that I can:
,-----
| For a long option, `--' and the full option name are generated as one
| parameter. This is done regardless whether the option was abbreviated
| or specified with a single `-' in the input. Arguments are handled as
| with short options.
`-----
but I can't find how.
please help/comment.
thanks
Any way that I can use single dash with long options with getopt(1)?
Eg, when using Perl Getopt::Long, for long option --title, I can abbreviate
it to -t, as long as the abbreviation is not ambiguous. But I found that I
have to use --t for getopt(1). Any way I can use single dash instead?
The getopt(1) man page hinted that I can:
,-----
| For a long option, `--' and the full option name are generated as one
| parameter. This is done regardless whether the option was abbreviated
| or specified with a single `-' in the input. Arguments are handled as
| with short options.
`-----
but I can't find how.
please help/comment.
thanks
--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/
--
Posted via a free Usenet account from http://www.teranews.com
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/
--
Posted via a free Usenet account from http://www.teranews.com