From 3e22b5efbd0504b2c1262096291a388600b45f61 Mon Sep 17 00:00:00 2001 From: mahtin Date: Mon, 2 May 2016 22:28:22 -0700 Subject: [PATCH] Updated README and usage string in CLI --- README.md | 6 +++--- cli4/cli4.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f7b2618..f8067a2 100644 --- a/README.md +++ b/README.md @@ -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'] @@ -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... ``` diff --git a/cli4/cli4.py b/cli4/cli4.py index bc44b51..e69dd53 100644 --- a/cli4/cli4.py +++ b/cli4/cli4.py @@ -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'])