File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ class HLL::Compiler does HLL::Backend::Default {
4
4
has $ ! parsegrammar ;
5
5
has $ ! parseactions ;
6
6
has @ ! cmdoptions ;
7
- has $ ! usage ;
8
7
has $ ! compiler_progname ;
9
8
has $ ! language ;
10
9
has % ! config ;
@@ -22,10 +21,6 @@ class HLL::Compiler does HLL::Backend::Default {
22
21
23
22
# Command options and usage.
24
23
@ ! cmdoptions := nqp :: split (' ' , ' e=s help|h target=s trace|t=s encoding=s output|o=s combine version|v show-config verbose-config|V stagestats=s? ll-exception rxtrace nqpevent=s profile profile-compile' );
25
- $ ! usage := " This compiler is based on HLL::Compiler.\n\n Options:\n " ;
26
- for @ ! cmdoptions {
27
- $ ! usage := $ ! usage ~ " $ _\n " ;
28
- }
29
24
% ! config := nqp ::hash();
30
25
}
31
26
@@ -446,7 +441,11 @@ class HLL::Compiler does HLL::Backend::Default {
446
441
if $ name {
447
442
say ($ name );
448
443
}
449
- nqp :: say ($ ! usage );
444
+ my $ usage := " This compiler is based on HLL::Compiler.\n\n Options:\n " ;
445
+ for @ ! cmdoptions {
446
+ $ usage := $ usage ~ " $ _\n " ;
447
+ }
448
+ nqp :: say ($ usage );
450
449
nqp ::exit(0 );
451
450
}
452
451
You can’t perform that action at this time.
0 commit comments