From 57620fd49a2b84119a35f4a842b544b3a49ee40b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 23 Aug 2016 12:57:49 +0200 Subject: [PATCH] Added some more documentation for refresh_backend_links mgmt cmd --- pillar/cli.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pillar/cli.py b/pillar/cli.py index fddb07db..82bedefd 100644 --- a/pillar/cli.py +++ b/pillar/cli.py @@ -309,11 +309,16 @@ def create_local_user_account(email, password): @manager.command -@manager.option('-c', '--chunk', dest='chunk_size', default=50) +@manager.option('-c', '--chunk', dest='chunk_size', default=50, + help='Number of links to update, use 0 to update all.') @manager.option('-q', '--quiet', dest='quiet', action='store_true', default=False) -@manager.option('-w', '--window', dest='window', default=12) +@manager.option('-w', '--window', dest='window', default=12, + help='Refresh links that expire in this many hours.') def refresh_backend_links(backend_name, chunk_size=50, quiet=False, window=12): - """Refreshes all file links that are using a certain storage backend.""" + """Refreshes all file links that are using a certain storage backend. + + Use `--chunk 0` to refresh all links. + """ chunk_size = int(chunk_size) window = int(window)