Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ Available Commands:
Flags:
-c, --config string Path to config file
--config-stdin Read MCP server configuration from stdin (JSON format). When enabled, overrides --config
--enable-difc Enable DIFC enforcement for information flow control
--env string Path to .env file to load environment variables
-h, --help help for awmg
-l, --listen string HTTP server listen address (default "127.0.0.1:3000")
Expand Down
1 change: 1 addition & 0 deletions internal/cmd/flags_difc.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ var (
func init() {
RegisterFlag(func(cmd *cobra.Command) {
cmd.Flags().BoolVar(&enableDIFC, "enable-difc", getDefaultEnableDIFC(), "Enable DIFC enforcement for information flow control")
cmd.Flags().MarkHidden("enable-difc")
Copy link

Copilot AI Feb 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cmd.Flags().MarkHidden("enable-difc") returns an error (e.g., if the flag name changes or registration order changes). Since the purpose of this change is to ensure the flag is hidden, consider handling the returned error (fail fast or surface it) so a silent failure doesn’t re-expose the flag in help output.

Suggested change
cmd.Flags().MarkHidden("enable-difc")
if err := cmd.Flags().MarkHidden("enable-difc"); err != nil {
cobra.CheckErr(err)
}

Copilot uses AI. Check for mistakes.
})
}

Expand Down
Loading