Changeset 94ef58c


Ignore:
Timestamp:
Aug 29, 2009, 10:17:09 PM (12 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
4ccd92c
Parents:
6c144b3
git-author:
David Benjamin <davidben@mit.edu> (08/21/09 21:12:52)
git-committer:
Nelson Elhage <nelhage@mit.edu> (08/29/09 22:17:09)
Message:
Add keyword arg to complete_flags: stop_at_nonflag

Signed-off-by: David Benjamin <davidben@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/lib/BarnOwl/Completion/Util.pm

    r6c144b3 r94ef58c  
    1515    my $default = shift;
    1616
     17    my %options = ();
     18    %options = @_ if @_;
    1719
    1820    my $idx = 1;
     
    3840        } else {
    3941            $argct++;
     42            if ($options{stop_at_nonflag}) {
     43                $optsdone = 1;
     44                $idx++;
     45                last;
     46            }
    4047        }
    4148        $idx++;
Note: See TracChangeset for help on using the changeset viewer.