From c13b1cb18eaf124e233983c1ba4b4a36c2ca5b4d Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sat, 3 Aug 2013 14:27:11 -0400 Subject: [PATCH] Rename option to 'recurse' to make it consistent. Add version_added to docs. --- packaging/pacman | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packaging/pacman b/packaging/pacman index 653d1a3b61b..cb5ae4aa42e 100644 --- a/packaging/pacman +++ b/packaging/pacman @@ -45,13 +45,14 @@ options: default: "no" choices: [ "yes", "no" ] - recursive: + recurse: description: - remove all not explicitly installed dependencies not required by other packages of the package to remove required: false default: "no" choices: [ "yes", "no" ] + version_added: "1.3" author: Afterburn notes: [] @@ -68,7 +69,7 @@ EXAMPLES = ''' - pacman: name=foo,bar state=absent # Recursively remove package baz -- pacman: name=baz state=absent recursive=yes +- pacman: name=baz state=absent recurse=yes # Update the package database (pacman -Syy) and install bar (bar will be the updated if a newer version exists) - pacman: name=bar, state=installed, update_cache=yes @@ -103,7 +104,7 @@ def update_package_db(module): def remove_packages(module, packages): - if module.params["recursive"]: + if module.params["recurse"]: args = "Rs" else: args = "R" @@ -156,7 +157,7 @@ def main(): argument_spec = dict( state = dict(default="installed", choices=["installed","absent"]), update_cache = dict(default="no", aliases=["update-cache"], type='bool'), - recursive = dict(default="no", type='bool'), + recurse = dict(default="no", type='bool'), name = dict(aliases=["pkg"], required=True)))