From d39635181739413d33b8a1aae863c326ad68f7d6 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 11 Sep 2017 11:25:34 -0700 Subject: [PATCH] Change ansible-doc usage to show -a is for internal use (#29603) * Change ansible-doc usage to show -a is for internal use ansible-doc -a is for testing that documentation is sane. It should not be used by normal users in production. The main reason for this is that it is designed to fail if there are any undocumented modules or plugins. This is good for testing that all plugins we ship are documented. It is not good for end users who may have undocumented third-party plugins. (cherry picked from commit cfaea8a05348326ab40c95754b218dd8814c8e2d) --- lib/ansible/cli/doc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/cli/doc.py b/lib/ansible/cli/doc.py index d46d1800b3b..02ee8a534a9 100644 --- a/lib/ansible/cli/doc.py +++ b/lib/ansible/cli/doc.py @@ -54,7 +54,7 @@ class DocCLI(CLI): def parse(self): self.parser = CLI.base_parser( - usage='usage: %prog [-l|-s|-a] [options] [-t 1: - raise AnsibleOptionsError("Only one of -l, -a or -s can be used at the same time.") + raise AnsibleOptionsError("Only one of -l, -s or -a can be used at the same time.") display.verbosity = self.options.verbosity