10 $PROGRAM_DIR =~ s/[^\/\\]+$//;
11 $PROGRAM_DIR = "./" unless($PROGRAM_DIR);
13 map "$PROGRAM_DIR$_",qw{modules lib
../modules
..lib
};
17 my @OPTIONS = qw
/help|h|? version|ver edit-me manual|man/;
22 require MyPlace
::Usage
;
23 Getopt
::Long
::GetOptions
(\
%OPTS,@OPTIONS);
24 MyPlace
::Usage
::Process
(\
%OPTS,$VERSION);
28 require MyPlace
::Usage
;
29 MyPlace
::Usage
::PrintHelp
();
37 my ($status1,$rule,$result) = urlrule_process_args
(@_);
38 print STDERR Data
::Dumper
->Dump([$rule,$result],[qw
/*rule *result/]);
41 my($pass_count,@pass_args) = urlrule_get_passdown
($rule,$result);
42 if($pass_count and $pass_count>0)
60 urlrule_test - test urlrule
64 urlrule_test [options] url [level] [action] [args...]
72 Print version infomation.
76 Print a brief help message and exits.
78 =item B<--manual>,B<--man>
80 View application manual
84 Invoke 'editor' against the source
94 2010-06-13 xiaoranzzz <xiaoranzzz@myplace.hell>
100 xiaoranzzz <xiaoranzzz@myplace.hell>