summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMatt Martz <matt@sivel.net>2019-04-23 20:54:39 +0200
committerGitHub <noreply@github.com>2019-04-23 20:54:39 +0200
commitdb6cc603528c5d1c15acf89e092f99f5d24ca848 (patch)
tree71ba2d9d769f9882f210722d21fd644a5b2f0052 /bin
parentUpdate bundled copy of six from 1.11.0 to 1.12.0 (#55456) (diff)
downloadansible-db6cc603528c5d1c15acf89e092f99f5d24ca848.tar.xz
ansible-db6cc603528c5d1c15acf89e092f99f5d24ca848.zip
Migrate command line parsing to argparse (#50610)
* Start of migration to argparse * various fixes and improvements * Linting fixes * Test fixes * Fix vault_password_files * Add PrependAction for argparse * A bunch of additional tweak/fixes * Fix ansible-config tests * Fix man page generation * linting fix * More adhoc pattern fixes * Add changelog fragment * Add support for argcomplete * Enable argcomplete global completion * Rename PrependAction to PrependListAction to better describe what it does * Add documentation for installing and configuring argcomplete * Address rebase issues * Fix display encoding for vault * Fix line length * Address rebase issues * Handle rebase issues * Use mutually exclusive group instead of handling manually * Fix rebase issues * Address rebase issue * Update version added for argcomplete support * -e must be given a value * ci_complete
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ansible5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/ansible b/bin/ansible
index 6a5568dff5..0290ee9dfe 100755
--- a/bin/ansible
+++ b/bin/ansible
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-
+# -*- coding: utf-8 -*-
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
@@ -17,7 +17,8 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
-########################################################
+# PYTHON_ARGCOMPLETE_OK
+
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type