diff options
Diffstat (limited to 'main.odin')
| -rw-r--r-- | main.odin | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -69,7 +69,7 @@ main :: proc() { files_to_process : [dynamic]string flag_start := 0 - for &arg, i in os.args { + for &arg, i in os.args[1:] { if len(arg) == 2 { if arg[0] == '-' { flag_start = i @@ -79,10 +79,6 @@ main :: proc() { lower := strings.to_lower(arg, context.allocator) - // I feel like there's a platform that doesn't supply the executable - // as the first argument, so I'm doing this at runtime just in case - if lower[max(0, len(lower)-4):len(lower)] == ".exe" do continue - file_exists := os.is_file(arg) if file_exists { if lower[max(0, len(lower)-4):len(lower)] == ".ics" { |