aboutsummaryrefslogtreecommitdiff
path: root/main.odin
diff options
context:
space:
mode:
Diffstat (limited to 'main.odin')
-rw-r--r--main.odin6
1 files changed, 1 insertions, 5 deletions
diff --git a/main.odin b/main.odin
index 71706fe..d6a952c 100644
--- a/main.odin
+++ b/main.odin
@@ -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" {