mirror of
https://github.com/vbatts/go-mtree.git
synced 2024-11-25 09:35:39 +00:00
21 lines
256 B
Go
21 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)
|
||
|
}
|
||
|
}
|