diff options
| author | San Jacobs | 2026-01-23 22:17:30 +0100 |
|---|---|---|
| committer | San Jacobs | 2026-01-23 22:17:30 +0100 |
| commit | b7d10d0a31470eb745af4e5d8e56cfa73a45c2b1 (patch) | |
| tree | de39b9e39b8991990343248ff06bb3192deafde4 | |
| parent | e8dfd55878dc8f28b64d07fa93a3485475c00784 (diff) | |
| download | statics-b7d10d0a31470eb745af4e5d8e56cfa73a45c2b1.tar.gz statics-b7d10d0a31470eb745af4e5d8e56cfa73a45c2b1.tar.bz2 statics-b7d10d0a31470eb745af4e5d8e56cfa73a45c2b1.zip | |
Tweaks
| -rw-r--r-- | main.odin | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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 { |