Skip to content

Commit

Permalink
Fix command line parsing.
Browse files Browse the repository at this point in the history
now "./partcl foo.tcl" works again
  • Loading branch information
coke committed Oct 7, 2012
1 parent 51dddb6 commit ea6caae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Partcl.pm
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ use src::FileGlob::Actions;
use src::FileGlob::Compiler;
use src::options;

sub MAIN(*@ARGS) {
sub MAIN(@ARGS) {
# XXX setup %LEXPAD?
my $compiler := Partcl::Compiler.new();
$compiler.language('Partcl');
$compiler.parsegrammar(Partcl::Grammar);
$compiler.parseactions(Partcl::Actions);
$compiler.command_line(@ARGS);
$compiler.command_line(@ARGS, :encoding('utf8'), :transcode('ascii iso-8859-1'));
}

0 comments on commit ea6caae

Please sign in to comment.