summaryrefslogtreecommitdiff
path: root/parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'parse.go')
-rw-r--r--parse.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.go b/parse.go
index 9e4e712..db15e5a 100644
--- a/parse.go
+++ b/parse.go
@@ -64,7 +64,7 @@ func Parse(dest ...interface{}) error {
// flags gets all command line arguments other than the first (program name)
func flags() []string {
- if len(os.Args) == 0 {
+ if len(os.Args) == 0 { // os.Args could be empty
return nil
}
return os.Args[1:]