advent2022

Advent of Code 2022 Solutions
git clone git://bsandro.tech/advent2022
Log | Files | Refs | README | LICENSE

commit b6ac3fb4d38a66ee0043f846c99d414b50c2c4cc
parent 0bc797eb7312ca31ff7bf6aaf0d1d8aba55b22ab
Author: bsandro <email@bsandro.tech>
Date:   Fri,  2 Dec 2022 00:31:18 +0200

Input file error checking, removed binary

Diffstat:
Dday01/day01 | 0
Mday01/main.go | 4++++
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/day01/day01 b/day01/day01 Binary files differ. diff --git a/day01/main.go b/day01/main.go @@ -12,6 +12,10 @@ import ( func main() { if len(os.Args) > 1 { day0102(os.Args[1]) + } else if len(os.Args) == 1 { + fmt.Printf("usage: %s inputfile.txt\n", os.Args[0]) + } else { + fmt.Println("No input data") } }