Skip to content

Commit ac13a83

Browse files
committed
use log-type to follow flag naming convention
1 parent 9975af2 commit ac13a83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/lk/agent.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ var (
8181
}
8282

8383
logTypeFlag = &cli.StringFlag{
84-
Name: "log_type",
84+
Name: "log-type",
8585
Usage: "Type of logs to retrieve. Valid values are 'deploy' and 'build'",
8686
Value: "deploy",
8787
Required: false,
@@ -713,7 +713,7 @@ func getLogs(ctx context.Context, cmd *cli.Command) error {
713713
if err != nil {
714714
return err
715715
}
716-
err = agentfs.LogHelper(ctx, "", agentName, cmd.String("log_type"), project)
716+
err = agentfs.LogHelper(ctx, "", agentName, cmd.String("log-type"), project)
717717
return err
718718
}
719719

0 commit comments

Comments
 (0)