2korapxml: Add -o option
Change-Id: I3da2e2848c4229c2b72de468517585f77855c7f5
diff --git a/script/conllu2korapxml b/script/conllu2korapxml
index e285abf..eb381c4 100755
--- a/script/conllu2korapxml
+++ b/script/conllu2korapxml
@@ -25,6 +25,7 @@
GetOptions(
'force-foundry|f=s' => \(my $foundry_name = ''),
'log|l=s' => \(my $log_level = 'warn'),
+ 'output|o=s' => \(my $outh = '-'),
'help|h' => sub {
pod2usage(
@@ -50,7 +51,6 @@
my $docid="";
my $zip = undef;
-my $outh = '-';
my $parser_file;
my $parse;
my $morpho_file;
@@ -295,6 +295,10 @@
Loglevel for I<Log::Any>. Defaults to C<warn>.
+=item B<--output|-o>
+
+Output file. Defaults to C<-> (stdout).
+
=back
=head1 EXAMPLES