[lkml]   [2008]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] headerdep: a tool for detecting inclusion cycles in header file

On Saturday 2008-04-26 16:22, Nick Andrew wrote:
>On Sat, Apr 26, 2008 at 04:17:15PM +0200, Vegard Nossum wrote:
>> I didn't want to get into the lands of parsing options since we would
>> need to handle gcc options and skip arguments to those, etc.
>use Getopt::Std qw(getopts);
>use vars qw($opt_g);
>if ($opt_g) {
> graph();

Try this, at least it is known to handle pass_through, which
is _just what we want_ for handling unknown options:

use Getopt::Long;
&Getopt::Long::Configure(qw(bundling pass_through));
&GetOptions("g" => \$opt_g, "I" => \@include_paths);

 \ /
  Last update: 2008-04-26 20:05    [W:0.091 / U:1.108 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site