ansible-pull - update help info for --directory option (#74936)

* Update -d help info for ansible-pull

* fix pep8
This commit is contained in:
David Shrewsbury 2021-06-10 15:31:17 -04:00 committed by GitHub
parent 5ac1b04929
commit 6539c59857
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- ansible-pull - update documentation for ``--directory`` option to clarify path must be absolute.

View file

@ -94,7 +94,8 @@ class PullCLI(CLI):
'This is a useful way to disperse git requests') 'This is a useful way to disperse git requests')
self.parser.add_argument('-f', '--force', dest='force', default=False, action='store_true', self.parser.add_argument('-f', '--force', dest='force', default=False, action='store_true',
help='run the playbook even if the repository could not be updated') help='run the playbook even if the repository could not be updated')
self.parser.add_argument('-d', '--directory', dest='dest', default=None, help='directory to checkout repository to') self.parser.add_argument('-d', '--directory', dest='dest', default=None,
help='absolute path of repository checkout directory (relative paths are not supported)')
self.parser.add_argument('-U', '--url', dest='url', default=None, help='URL of the playbook repository') self.parser.add_argument('-U', '--url', dest='url', default=None, help='URL of the playbook repository')
self.parser.add_argument('--full', dest='fullclone', action='store_true', help='Do a full clone, instead of a shallow one.') self.parser.add_argument('--full', dest='fullclone', action='store_true', help='Do a full clone, instead of a shallow one.')
self.parser.add_argument('-C', '--checkout', dest='checkout', self.parser.add_argument('-C', '--checkout', dest='checkout',