Skip to content

Commit

Permalink
Updated README and usage string in CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
mahtin committed May 3, 2016
1 parent ddbc44f commit 3e22b5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ The CloudFlare API can be found [here](https://api.cloudflare.com/). Each API ca
A very simple listing of zones within your account; including the IPv6 status of the zone.

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

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

Expand Down
2 changes: 1 addition & 1 deletion cli4/cli4.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def cli4(args):
quiet = False
method = 'GET'

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

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

0 comments on commit 3e22b5e

Please sign in to comment.