Skip to content

Commit 6a45090

Browse files
committed
Update comments
1 parent 28bbc8f commit 6a45090

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/struct.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ func (s *Script) IsExecutable() bool {
5353
// function aims to return early and perform as little work as possible
5454
// to avoid reading the entire file and stay performant
5555
// with large script folders and files
56+
// Further improvement can be had by detaching the
57+
// parsing of the usage from the parsing of help
58+
// This would benefit the case of rendering help and completions
59+
// where the usage is needed but the help is not
5660
func (s *Script) ParseV2() (string, string, error) {
5761
log.Debugw("Parsing script", "path", s.path)
5862
file, err := os.Open(s.path)

0 commit comments

Comments
 (0)