Skip to content

Commit a6de29c

Browse files
author
jon-stewart
committed
fix: component args
1 parent 9648205 commit a6de29c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/cmd/component_args.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ func (p *componentArgParser) parseLongArg(flags *pflag.FlagSet, s string, args [
8383
// We're actually a bit stuck here as we don't know if this flag
8484
// takes an argument or not, so we don't know whether or not to consume
8585
// the next arg. What we'll do is peek ahead, and if the next arg does
86-
// not start with - then we'll take it.
87-
if len(args) > 0 && len(args[0]) > 0 && args[0][0] == '-' {
86+
// not start with '--' then we'll take it.
87+
if len(args) > 0 && len(args[0]) > 0 && (args[0][0] == '-' && args[0][1] == '-') {
8888
// This component flag does not take an arg
8989
return args
9090
}

0 commit comments

Comments
 (0)