File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
ownlang-desktop/src/main/java/com/annimon/ownlang Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## Next
4+
5+ ### Fixes
6+ - Fix passing arguments
7+
8+
39## 2.0.0
410
511### Breaking changes
Original file line number Diff line number Diff line change @@ -73,7 +73,9 @@ public static void main(String[] args) throws IOException {
7373
7474 case "-l" :
7575 case "--lint" :
76- final String lintMode = i + 1 < args .length ? args [++i ] : LinterStage .Mode .SEMANTIC .name ();
76+ final String lintMode = i + 1 < args .length
77+ ? args [++i ]
78+ : LinterStage .Mode .SEMANTIC .name ();
7779 options .lintMode = switch (lintMode .toLowerCase (Locale .ROOT )) {
7880 case "none" -> LinterStage .Mode .NONE ;
7981 case "full" -> LinterStage .Mode .FULL ;
@@ -106,7 +108,7 @@ public static void main(String[] args) throws IOException {
106108 return ;
107109
108110 default :
109- if (options .programSource == null ) {
111+ if (options .programPath == null && options . programSource == null ) {
110112 options .programSource = args [i ];
111113 createOwnLangArgs (args , i + 1 );
112114 }
You can’t perform that action at this time.
0 commit comments