From b7d10d0a31470eb745af4e5d8e56cfa73a45c2b1 Mon Sep 17 00:00:00 2001 From: San Jacobs Date: Fri, 23 Jan 2026 22:17:30 +0100 Subject: Tweaks --- main.odin | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'main.odin') diff --git a/main.odin b/main.odin index 533682c..71706fe 100644 --- a/main.odin +++ b/main.odin @@ -96,7 +96,7 @@ main :: proc() { if path != "" { append(&files_to_process, path) } else { - fmt.eprintln("ERROR: [{}] is neither a file nor alias!", arg) + fmt.eprintfln("ERROR: [{}] is neither a file nor alias!", arg) } } } @@ -136,17 +136,17 @@ main :: proc() { fmt.println("\nFilter syntax:") fmt.println("Filters currently only filter based on the event start time.") fmt.println("Specify only as much as you want to filter by.") - fmt.println("YYYY-MM-DD-Hr-Mn") - fmt.println("\n-t 2015-12-31-12-45 will not count anything from that point and out.") + fmt.println(" YYYY-MM-DD-Hr-Mn") + fmt.println("-t 2015-12-31-12-45 will not count anything from that point and out.") fmt.println("-i 2018-12 will only count things within December of 2018.") fmt.println("\nAlias syntax:") - fmt.println("-a Project https://example.org/") - fmt.println("Depending on OS, be careful about special characters like / escaping.") - fmt.println("This will save the URL https://example.org under the alias Project.") + fmt.println("-a Project https://example.org/project.ics") + fmt.println("This will save the URL under the alias Project.") fmt.println("Later you can then specify Project instead of a path/to/a_file.ics,") fmt.println("and it will fetch the ICS from the web via the saved link.") fmt.println("The URL and latest ICS from it will be stored next to the executable.") + fmt.println("Depending on OS, be careful about special characters like / escaping.") fmt.println("") os.exit(0) @@ -368,7 +368,7 @@ get_from_alias :: proc(alias : string) -> string { } just_fucking_make_the_directory(ics_cache_dir) - download_path := fmt.tprint(ics_cache_dir, alias, sep=SEPARATOR) + download_path := fmt.tprint(ics_cache_dir, SEPARATOR, alias, ".ics", sep="") dl_ok := download_file(url, download_path) if !dl_ok { -- cgit v1.2.1