diff --git a/docs/cmd/kn_source_ping_create.md b/docs/cmd/kn_source_ping_create.md index 8c26e709a2..f2271191fb 100644 --- a/docs/cmd/kn_source_ping_create.md +++ b/docs/cmd/kn_source_ping_create.md @@ -7,7 +7,7 @@ Create a ping source Create a ping source ``` -kn source ping create NAME +kn source ping create NAME --sink SINK ``` ### Examples diff --git a/pkg/kn/commands/source/ping/create.go b/pkg/kn/commands/source/ping/create.go index b667d0d8a6..eca5296654 100644 --- a/pkg/kn/commands/source/ping/create.go +++ b/pkg/kn/commands/source/ping/create.go @@ -32,7 +32,7 @@ func NewPingCreateCommand(p *commands.KnParams) *cobra.Command { var sinkFlags flags.SinkFlags cmd := &cobra.Command{ - Use: "create NAME", + Use: "create NAME --sink SINK", Short: "Create a ping source", Example: ` # Create a Ping source 'my-ping' which fires every two minutes and sends '{ value: "hello" }' to service 'mysvc' as a cloudevent