package
0.0.0-20180917163111-c11762084cf7
Repository: https://github.com/rwtodd/go.apputil.git
Documentation: pkg.go.dev
# README
apputil-go/cmdline
It's current only feature is cmdline.GlobArgs()
, which
handles the difference between Unix and Windows shell behavior.
On windows, globs aren't expanded by the shell, so the program will get a
literal "*.*" as an argument, rather than a list of matching
files.
This isn't good for portable behavior between operating systems. So,
GlobArgs()
will perform expansion on all arguments on Windows, and
do nothing on other platforms.
Get
go get github.com/rwtodd/apputil/cmdline