#!/usr/bin/env perl
|
|
|
|
=pod
|
|
|
|
=head1 NAME
|
|
|
|
pieces-remove - remove files from the current set of marked files
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
pieces-remove: removes paths from the pieces list
|
|
|
|
USAGE:
|
|
pieces remove path [...]
|
|
|
|
EXAMPLE:
|
|
pieces remove foo.txt
|
|
|
|
=head1 AUTHOR
|
|
|
|
Brennen Bearnes
|
|
|
|
=cut
|
|
|
|
use warnings;
|
|
use strict;
|
|
use 5.10.0;
|
|
|
|
use App::Pieces;
|
|
use Cwd qw(cwd abs_path);
|
|
use Getopt::Long;
|
|
use Pod::Usage;
|
|
|
|
GetOptions(
|
|
# 'config=s' => \$config_file,
|
|
help => sub { pod2usage(0) },
|
|
) or pod2usage(2);
|
|
|
|
App::Pieces->new()->remove(map { abs_path($_) } @ARGV);
|