MCPcopy Create free account
hub / github.com/dropbox/dbxcli / optionalStringFlag

Function optionalStringFlag

cmd/list_options.go:28–34  ·  view source on GitHub ↗
(cmd *cobra.Command, name string)

Source from the content-addressed store, hash-verified

26}
27
28func optionalStringFlag(cmd *cobra.Command, name string) string {
29 if cmd.Flags().Lookup(name) == nil {
30 return ""
31 }
32 value, _ := cmd.Flags().GetString(name)
33 return value
34}
35
36func optionalUint64Flag(cmd *cobra.Command, name string) uint64 {
37 if cmd.Flags().Lookup(name) == nil {

Callers 1

parseListOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected