binmode( STDOUT, ':utf8' );
binmode( STDERR, ':utf8' );
-my( $tfile, $sfile, $delete, $list, $dsn ) =
- ( undef, undef, undef, 0, 'dbi:SQLite:dbname=db/traditions.db' );
+my( $tfile, $format, $sfile, $delete, $list, $dsn ) =
+ ( undef, 'Self', undef, undef, 0, 'dbi:SQLite:dbname=db/traditions.db' );
GetOptions(
't|tradition=s' => \$tfile,
+ 'f|format=s' => \$format,
's|stemma=s' => \$sfile,
'l|list' => \$list,
'd|delete=s' => \$delete,
if( $tfile ) {
print STDERR "Reading tradition from $tfile\n";
$tradition = Text::Tradition->new(
- 'input' => 'Self',
+ 'input' => $format,
'file' => $tfile,
'linear' => 1,
);