App-CSVUtils
view release on metacpan or search on metacpan
script/csv2vcf view on Meta::CPAN
#!perl
# Note: This script is a CLI for Riap function /App/CSVUtils/csv2vcf/csv2vcf
# and generated automatically using Perinci::CmdLine::Gen version 0.502
use 5.010001;
use strict;
use warnings;
use Log::ger;
use Perinci::CmdLine::Any;
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2025-02-04'; # DATE
our $DIST = 'App-CSVUtils'; # DIST
our $VERSION = '1.036'; # VERSION
my $cmdline = Perinci::CmdLine::Any->new(
url => "/App/CSVUtils/csv2vcf/csv2vcf",
program_name => "csv2vcf",
log => 1,
read_config => 0,
read_env => 0,
use_utf8 => 1,
);
$cmdline->run;
# ABSTRACT: Create a VCF from selected fields of the CSV
# PODNAME: csv2vcf
__END__
=pod
=encoding UTF-8
=head1 NAME
csv2vcf - Create a VCF from selected fields of the CSV
=head1 VERSION
This document describes version 1.036 of csv2vcf (from Perl distribution App-CSVUtils), released on 2025-02-04.
=head1 SYNOPSIS
B<csv2vcf> B<L<--help|/"--help, -h, -?">> (or B<L<-h|/"--help, -h, -?">>, B<L<-?|/"--help, -h, -?">>)
B<csv2vcf> B<L<--version|/"--version, -v">> (or B<L<-v|/"--version, -v">>)
B<csv2vcf> [B<L<--cell-vcf-field|/"--cell-vcf-field=s">>=I<str>] [B<L<--debug|/"--debug">>|B<L<--log-level|/"--log-level=s">>=I<level>|B<L<--quiet|/"--quiet">>|B<L<--trace|/"--trace">>|B<L<--verbose|/"--verbose">>] [B<L<--email-vcf-field|/"--email-vc...
See examples in the L</EXAMPLES> section.
=head1 DESCRIPTION
You can set which CSV fields to use for name, cell phone, and email. If unset,
will guess from the field name. If that also fails, will warn/bail out.
=head1 OPTIONS
C<*> marks required options.
=head2 Main options
=over
=item B<--cell-vcf-field>=I<s>
Select field to use as VCF CELL field.
=item B<--email-vcf-field>=I<s>
Select field to use as VCF EMAIL field.
=item B<--input-skip-num-lines>=I<s>
Number of lines to skip before header row.
This can be useful if you have a CSV files (usually some generated reports,
sometimes converted from spreadsheet) that have additional header lines or info
before the CSV header row.
See also the alternative option: C<--input-skip-until-pattern>.
=item B<--input-skip-until-pattern>=I<s>
Skip rows until the first header row matches a regex pattern.
This is an alternative to the C<--input-skip-num-lines> and can be useful if you
have a CSV files (usually some generated reports, sometimes converted from
spreadsheet) that have additional header lines or info before the CSV header
row.
With C<--input-skip-num-lines>, you skip a fixed number of lines. With this
option, rows will be skipped until the first field matches the specified regex
pattern.
=item B<--name-vcf-field>=I<s>
Select field to use as VCF N (name) field.
=back
=head2 Input options
=over
=item B<--input-escape-char>=I<s>
Specify character to escape value in field in input CSV, will be passed to Text::CSV_XS.
Defaults to C<\\> (backslash). Overrides C<--input-tsv> option.
=item B<--input-filename>=I<s>
( run in 0.504 second using v1.01-cache-2.11-cpan-39bf76dae61 )