1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2024-12-24 22:46:32 +00:00
go-mtree/test/realpath/main.go

21 lines
256 B
Go
Raw Normal View History

2018-08-14 01:20:31 +00:00
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)
}
}