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 1
1
# Changelog
2
2
3
+ ## Next
4
+
5
+ ### Fixes
6
+ - Fix passing arguments
7
+
8
+
3
9
## 2.0.0
4
10
5
11
### Breaking changes
Original file line number Diff line number Diff line change @@ -73,7 +73,9 @@ public static void main(String[] args) throws IOException {
73
73
74
74
case "-l" :
75
75
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 ();
77
79
options .lintMode = switch (lintMode .toLowerCase (Locale .ROOT )) {
78
80
case "none" -> LinterStage .Mode .NONE ;
79
81
case "full" -> LinterStage .Mode .FULL ;
@@ -106,7 +108,7 @@ public static void main(String[] args) throws IOException {
106
108
return ;
107
109
108
110
default :
109
- if (options .programSource == null ) {
111
+ if (options .programPath == null && options . programSource == null ) {
110
112
options .programSource = args [i ];
111
113
createOwnLangArgs (args , i + 1 );
112
114
}
You can’t perform that action at this time.
0 commit comments