Skip to content

Commit 90f2926

Browse files
committed
Improve location parameter description
1 parent 2875364 commit 90f2926

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

commands/channel/create.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ func CreateCommandChannelCreate() *cobra.Command {
2222
channel_create.Flags().String("website_url", "", "(str) website url")
2323
channel_create.Flags().StringArray("featured", nil, "(list) claim_ids of featured content in channel")
2424
channel_create.Flags().StringArray("tags", nil, "(list) content tags")
25-
channel_create.Flags().StringArray("languages", nil, "(list) languages used by the channel, using RFC 5646 format, eg:\nfor English `--languages=en`\nfor Spanish (Spain) `--languages=es-ES`\nfor Spanish (Mexican) `--languages=es-MX`\nfor Chinese (Simplified) `--languages=zh-Hans`\nfor Chinese (Traditional) `--languages=zh-Hant`")
26-
channel_create.Flags().StringArray("locations", nil, "(list) locations of the channel, consisting of 2 letter\r\n `country` code and a `state`, `city` and a postal\r\n `code` along with a `latitude` and `longitude`.\r\n for JSON RPC: pass a dictionary with aforementioned\r\n attributes as keys, eg:\r\n ...\r\n \"locations\": [{'country': 'US', 'state': 'NH'}]\r\n ...\r\n for command line: pass a colon delimited list\r\n with values in the following order:\r\n\r\n \"COUNTRY:STATE:CITY:CODE:LATITUDE:LONGITUDE\"\r\n\r\n making sure to include colon for blank values, for\r\n example to provide only the city:\r\n\r\n ... --locations=\"::Manchester\"\r\n\r\n with all values set:\r\n\r\n ... --locations=\"US:NH:Manchester:03101:42.990605:-71.460989\"\r\n\r\n optionally, you can just pass the \"LATITUDE:LONGITUDE\":\r\n\r\n ... --locations=\"42.990605:-71.460989\"\r\n\r\n finally, you can also pass JSON string of dictionary\r\n on the command line as you would via JSON RPC\r\n\r\n ... --locations=\"{'country': 'US', 'state': 'NH'}\"")
25+
channel_create.Flags().StringArray("languages", nil, "(list) languages used by the channel, using RFC 5646 format, eg:\n\tfor English `--languages=en`\n\tfor Spanish (Spain) `--languages=es-ES`\n\tfor Spanish (Mexican) `--languages=es-MX`\n\tfor Chinese (Simplified) `--languages=zh-Hans`\n\tfor Chinese (Traditional) `--languages=zh-Hant`")
26+
channel_create.Flags().StringArray("locations", nil, "(list) locations of the channel, consisting of 2 letter `country` code and a `state`, `city` and a postal `code` along with a `latitude` and `longitude`.\nfor JSON RPC: pass a dictionary with aforementioned attributes as keys, eg:\n\t...\n\t\"locations\": [{'country': 'US', 'state': 'NH'}]\n\t...\nfor command line: pass a colon delimited list with values in the following order:\n\n\t\"COUNTRY:STATE:CITY:CODE:LATITUDE:LONGITUDE\"\n\nmaking sure to include colon for blank values, for example to provide only the city:\n\n\t... --locations=\"::Manchester\"\n\nwith all values set:\n\n\t... --locations=\"US:NH:Manchester:03101:42.990605:-71.460989\"\n\noptionally, you can just pass the \"LATITUDE:LONGITUDE\":\n\n\t... --locations=\"42.990605:-71.460989\"\n\nfinally, you can also pass JSON string of dictionary on the command line as you would via JSON RPC\n\n\t... --locations=\"{'country': 'US', 'state': 'NH'}\"")
2727
channel_create.Flags().String("thumbnail_url", "", "(str) thumbnail url")
2828
channel_create.Flags().String("cover_url", "", "(str) url of cover image")
2929
channel_create.Flags().String("account_id", "", "(str) account to use for holding the transaction")

commands/channel/update.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ func CreateCommandChannelUpdate() *cobra.Command {
2525
channel_update.Flags().Bool("clear_tags", false, "(bool) clear existing tags (prior to adding new ones)")
2626
channel_update.Flags().StringArray("languages", nil, "(list) languages used by the channel, using RFC 5646 format, eg:\nfor English `--languages=en`\nfor Spanish (Spain) `--languages=es-ES`\nfor Spanish (Mexican) `--languages=es-MX`\nfor Chinese (Simplified) `--languages=zh-Hans`\nfor Chinese (Traditional) `--languages=zh-Hant`")
2727
channel_update.Flags().Bool("clear_languages", false, "(bool) clear existing languages (prior to adding new ones)")
28-
channel_update.Flags().StringArray("locations", nil, "(list) locations of the channel, consisting of 2 letter\r\n `country` code and a `state`, `city` and a postal\r\n `code` along with a `latitude` and `longitude`.\r\n for JSON RPC: pass a dictionary with aforementioned\r\n attributes as keys, eg:\r\n ...\r\n \"locations\": [{'country': 'US', 'state': 'NH'}]\r\n ...\r\n for command line: pass a colon delimited list\r\n with values in the following order:\r\n\r\n \"COUNTRY:STATE:CITY:CODE:LATITUDE:LONGITUDE\"\r\n\r\n making sure to include colon for blank values, for\r\n example to provide only the city:\r\n\r\n ... --locations=\"::Manchester\"\r\n\r\n with all values set:\r\n\r\n ... --locations=\"US:NH:Manchester:03101:42.990605:-71.460989\"\r\n\r\n optionally, you can just pass the \"LATITUDE:LONGITUDE\":\r\n\r\n ... --locations=\"42.990605:-71.460989\"\r\n\r\n finally, you can also pass JSON string of dictionary\r\n on the command line as you would via JSON RPC\r\n\r\n ... --locations=\"{'country': 'US', 'state': 'NH'}\"")
29-
channel_update.Flags().Bool("clear_locations", false, "(bool) clear existing locations (prior to adding new ones)")
28+
channel_create.Flags().StringArray("locations", nil, "(list) locations of the channel, consisting of 2 letter `country` code and a `state`, `city` and a postal `code` along with a `latitude` and `longitude`.\nfor JSON RPC: pass a dictionary with aforementioned attributes as keys, eg:\n\t...\n\t\"locations\": [{'country': 'US', 'state': 'NH'}]\n\t...\nfor command line: pass a colon delimited list with values in the following order:\n\n\t\"COUNTRY:STATE:CITY:CODE:LATITUDE:LONGITUDE\"\n\nmaking sure to include colon for blank values, for example to provide only the city:\n\n\t... --locations=\"::Manchester\"\n\nwith all values set:\n\n\t... --locations=\"US:NH:Manchester:03101:42.990605:-71.460989\"\n\noptionally, you can just pass the \"LATITUDE:LONGITUDE\":\n\n\t... --locations=\"42.990605:-71.460989\"\n\nfinally, you can also pass JSON string of dictionary on the command line as you would via JSON RPC\n\n\t... --locations=\"{'country': 'US', 'state': 'NH'}\"")
29+
channel_update.Flags().Bool("clear_locations", false, "(bool) clear existing locations (prior to adding new ones)")
3030
channel_update.Flags().String("thumbnail_url", "", "(str) thumbnail url")
3131
channel_update.Flags().String("cover_url", "", "(str) url of cover image")
3232
channel_update.Flags().String("account_id", "", "(str) account in which to look for channel (default: all)")

0 commit comments

Comments
 (0)