From 580b042d331c3fe0cddb41f1daafca4251fdf4bb Mon Sep 17 00:00:00 2001 From: Henning Jacobs Date: Sun, 15 Jan 2017 18:18:18 +0100 Subject: [PATCH] #95 fix CLI help text --- kube_ops_view/main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kube_ops_view/main.py b/kube_ops_view/main.py index 4ce704f..9d3643e 100644 --- a/kube_ops_view/main.py +++ b/kube_ops_view/main.py @@ -197,11 +197,12 @@ class CommaSeparatedValues(click.ParamType): @click.option('-m', '--mock', is_flag=True, help='Mock Kubernetes clusters', envvar='MOCK') @click.option('--secret-key', help='Secret key for session cookies', envvar='SECRET_KEY', default='development') @click.option('--redis-url', help='Redis URL to use for pub/sub and job locking', envvar='REDIS_URL') -@click.option('--clusters', type=CommaSeparatedValues(), help='Comma separated list of Kubernetes API server URLs (default: {})'.format(DEFAULT_CLUSTERS), - envvar='CLUSTERS') +@click.option('--clusters', type=CommaSeparatedValues(), + help='Comma separated list of Kubernetes API server URLs (default: {})'.format(DEFAULT_CLUSTERS), envvar='CLUSTERS') @click.option('--cluster-registry-url', help='URL to cluster registry', envvar='CLUSTER_REGISTRY_URL') @click.option('--kubeconfig-path', type=click.Path(exists=True), help='Path to kubeconfig file', envvar='KUBECONFIG_PATH') -@click.option('--kubeconfig-contexts', type=CommaSeparatedValues(), help='Path to kubeconfig file', envvar='KUBECONFIG_PATH') +@click.option('--kubeconfig-contexts', type=CommaSeparatedValues(), + help='List of kubeconfig contexts to use (default: use all defined contexts)', envvar='KUBECONFIG_CONTEXTS') @click.option('--query-interval', type=float, help='Interval in seconds for querying clusters (default: 5)', envvar='QUERY_INTERVAL', default=5) def main(port, debug, mock, secret_key, redis_url, clusters: list, cluster_registry_url, kubeconfig_path, kubeconfig_contexts: list, query_interval): logging.basicConfig(level=logging.DEBUG if debug else logging.INFO)