Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 3e22b5e

Browse files
committed
Updated README and usage string in CLI
1 parent ddbc44f commit 3e22b5e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ The CloudFlare API can be found [here](https://api.cloudflare.com/). Each API ca
2020
A very simple listing of zones within your account; including the IPv6 status of the zone.
2121

2222
```
23-
from CloudFlare import CloudFlare
23+
import CloudFlare
2424
2525
def main():
2626
cf = CloudFlare.CloudFlare()
27-
zones = cf.zones.get(param={'per_page':50})
27+
zones = cf.zones.get(params = {'per_page':50})
2828
for zone in zones:
2929
zone_name = zone['name']
3030
zone_id = zone['id']
@@ -117,7 +117,7 @@ The _example_ folder contains many examples in both simple and verbose formats.
117117
All API calls can be called from the command line. The command will convert domain names on-the-fly into zone_identifier's.
118118

119119
```
120-
$ cli4 [-h|--help] [-v|--verbose] [-q|--quiet] [--get|--patch|--post|-put|--delete] /command...
120+
$ cli4 [-h|--help] [-v|--verbose] [-q|--quiet] [--get|--patch|--post|-put|--delete] [item=value ...] /command...
121121
122122
```
123123

cli4/cli4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def cli4(args):
9595
quiet = False
9696
method = 'GET'
9797

98-
usage = 'usage: cli4 [-h|--help] [-v|--verbose] [-q|--quiet] [--get|--patch|--post|-put|--delete] /command...'
98+
usage = 'usage: cli4 [-h|--help] [-v|--verbose] [-q|--quiet] [--get|--patch|--post|-put|--delete] [item=value ...] /command...'
9999

100100
try:
101101
opts, args = getopt.getopt(args, 'hvq', ['help', 'verbose', 'quiet', 'get', 'patch', 'post', 'put', 'delete'])

0 commit comments

Comments
 (0)