Skip to content

Commit 9fc9d03

Browse files
committed
fix
1 parent deec462 commit 9fc9d03

4 files changed

Lines changed: 4 additions & 1 deletion

File tree

dist/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ The text of each license is also included at licenses/license-[project].txt.
213213
sigs.k8s.io/controller-runtime v0.20.4 Apache-2.0
214214
sigs.k8s.io/randfill v1.0.0 Apache-2.0
215215
sigs.k8s.io/structured-merge-diff/v4 v4.7.0 Apache-2.0
216-
skywalking.apache.org/repo/goapi v0.0.0-20250918024206-7be91673cadc Apache-2.0
216+
skywalking.apache.org/repo/goapi v0.0.0-20251011100214-efff910f2031 Apache-2.0
217217

218218
========================================================================
219219
Apache-2.0 and BSD-3-Clause licenses

internal/commands/interceptor/instance.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ func parseInstanceList(required bool, idListFlagName, nameListFlagName, serviceI
106106

107107
if idsArg == "" && namesArgs == "" {
108108
if required {
109+
_ = cli.ShowSubcommandHelp(ctx)
109110
return fmt.Errorf(`either flags "--%s" or "--%s" must be given`, idListFlagName, nameListFlagName)
110111
}
111112
return nil

internal/commands/profiling/pprof/create.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ $ swctl profiling pprof create --service-name=service-name --duration=10 --event
6565
},
6666
),
6767
Before: interceptor.BeforeChain(
68+
interceptor.ParseService(true),
6869
interceptor.ParseInstanceList(true),
6970
),
7071
Action: func(ctx *cli.Context) error {

internal/commands/profiling/pprof/getAnalyze.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ $ swctl profiling pprof analysis --service-name=service-name --task-id=task-id \
5252
},
5353
),
5454
Before: interceptor.BeforeChain(
55+
interceptor.ParseService(true),
5556
interceptor.ParseInstanceList(true),
5657
),
5758
Action: func(ctx *cli.Context) error {

0 commit comments

Comments
 (0)