main: fail-pretty with no args

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2020-03-04 10:08:24 -05:00
parent 22a474917c
commit e98f614543
Signed by: vbatts
GPG key ID: 10937E57733F1362

View file

@ -8,6 +8,10 @@ import (
)
func main() {
if len(os.Args[1:]) == 0 {
fmt.Println("please provide path to a tar archive")
os.Exit(1)
}
fh, err := os.Open(os.Args[1])
if err != nil {
log.Fatal(err)