use the provided constants for multi platform support
Signed-off-by: Stu Pollock <spollock@pivotal.io>
diff --git a/completion.go b/completion.go
index 66a9ac3..cca12a7 100644
--- a/completion.go
+++ b/completion.go
@@ -88,7 +88,7 @@
for name, opt := range s.lookup.longNames {
if strings.HasPrefix(name, match) && !opt.Hidden {
results = append(results, Completion{
- Item: "--" + name,
+ Item: defaultLongOptDelimiter + name,
Description: opt.Description,
})
@@ -102,7 +102,7 @@
for name, opt := range s.lookup.shortNames {
if _, exist := repeats[name]; !exist && strings.HasPrefix(name, match) && !opt.Hidden {
results = append(results, Completion{
- Item: "-" + name,
+ Item: string(defaultShortOptDelimiter) + name,
Description: opt.Description,
})
}