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
1 changed files with 4 additions and 0 deletions

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)