1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2024-11-15 21:28:38 +00:00
go-mtree/test/realpath/main.go
Vincent Batts f32ba81c5e
*: rework the test tools, so no dep is ignored
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-03 23:15:40 -04:00

20 lines
256 B
Go

package main
import (
"flag"
"fmt"
"os"
"path/filepath"
)
func main() {
flag.Parse()
for _, arg := range flag.Args() {
path, err := filepath.Abs(arg)
if err != nil {
fmt.Fprint(os.Stderr, err)
os.Exit(1)
}
fmt.Printf("%s", path)
}
}