Browse Source

bin/wrot: add --stdin flag

pull/1/head
Brennen Bearnes 8 years ago
parent
commit
bfddb92cf2
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      bin/wrot

+ 5
- 1
bin/wrot View File

@ -46,13 +46,17 @@ do 'conf.pl' if (-e 'conf.pl');
my $w = WROT->new(%WROT_CONF);
# Take names from STDIN
if ($from_stdin) {
while (my $entry = <>) {
chomp($entry);
print $w->display($entry);
}
exit(0);
} elsif ($render) {
}
# Just display the requested stuff and exit:
unless ($render) {
print $w->display(@ARGV);
exit(0);
}


|||||||
x
 
000:0
Loading…
Cancel
Save