From 0560b813b2e8fadad01a8969382e39abc0dca899 Mon Sep 17 00:00:00 2001 From: "Antoine R. Dumont (@ardumont)" <antoine.romain.dumont@gmail.com> Date: Thu, 9 Jan 2020 10:54:49 +0100 Subject: [PATCH] cran.lister: Adapt docstring sample accordingly --- swh/lister/cran/lister.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/swh/lister/cran/lister.py b/swh/lister/cran/lister.py index b8bd2c5b..32142a5e 100644 --- a/swh/lister/cran/lister.py +++ b/swh/lister/cran/lister.py @@ -28,8 +28,11 @@ class CRANLister(SimpleLister): """Return task format dict. This creates tasks with args and kwargs set, for example:: - args: ['package', 'https://cran.r-project.org/...', 'version'] - kwargs: {} + args: [] + kwargs: { + 'url': 'https://cran.r-project.org/...', + 'version': '0.0.1' + } """ policy = kwargs.get('policy', 'oneshot') -- GitLab