2 # Copyright (C) 2008, Parrot Foundation.
9 use Parrot
::SearchOps
qw(
16 Getopt
::Long
::GetOptions
(
26 croak
"You may search for only 1 ops code at a time: $!"
28 unless ($all or $ARGV[0]) {
33 my $pattern = $all ?
q{} : $ARGV[0];
35 my $opsdir = q{src/ops};
37 my $total_identified = search_all_ops_files
(
38 $pattern, $wrap_width, $opsdir
41 print "No matches were found\n" unless $total_identified;
46 tools/dev/search-ops.pl - Get descriptions of ops codes
50 From the top-level Parrot directory,
52 perl tools/dev/search-ops.pl ops_pattern
56 perl tools/dev/search-ops.pl --help
58 To display all ops codes,
60 perl tools/dev/search-ops.pl --all
64 James E Keenan, adapting Python program written by Bernhard Schmalhofer.
70 # cperl-indent-level: 4
73 # vim: expandtab shiftwidth=4: