Skip to content

Commit ad4369d

Browse files
committed
fix(namespace): require --label falg for update command
Signed-off-by: Park jungtae <[email protected]>
1 parent 8a5888e commit ad4369d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/nerdctl/namespace/namespace_update.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ func updateCommand() *cobra.Command {
3636
SilenceUsage: true,
3737
SilenceErrors: true,
3838
}
39-
cmd.Flags().StringArrayP("label", "l", nil, "Set labels for a namespace")
39+
cmd.Flags().StringArrayP("label", "l", nil, "Set labels for a namespace (required)")
40+
cmd.MarkFlagRequired("label")
4041
return cmd
4142
}
4243

0 commit comments

Comments
 (0)