MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / addCommonFlags

Function addCommonFlags

cmd/cql/internal/cfg.go:57–69  ·  view source on GitHub ↗
(cmd *Command)

Source from the content-addressed store, hash-verified

55)
56
57func addCommonFlags(cmd *Command) {
58 cmd.CommonFlag.BoolVar(&help, "help", false, "Show help message")
59 cmd.CommonFlag.BoolVar(&withPassword, "with-password", false,
60 "Enter the passphrase for private.key")
61
62 // debugging flags.
63 cmd.DebugFlag.StringVar(&password, "password", "",
64 "Passphrase for encrypting private.key (NOT SAFE, for debug or script only)")
65 cmd.DebugFlag.StringVar(&consoleLogLevel, "log-level", "info",
66 "Console log level: trace debug info warning error fatal panic")
67 cmd.DebugFlag.BoolVar(&asymmetric.BypassSignature, "bypass-signature", false,
68 "Disable signature sign and verify, for testing")
69}
70
71func commonFlagsInit(cmd *Command) {
72 if help {

Callers 13

initFunction · 0.85
MainUsageFunction · 0.85
initFunction · 0.85
initFunction · 0.85
initFunction · 0.85
initFunction · 0.85
initFunction · 0.85
initFunction · 0.85
initFunction · 0.85
initFunction · 0.85
initFunction · 0.85
initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected