summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliu-sheng <liusheng@huawei.com>2014-06-30 11:40:50 +0800
committerliu-sheng <liusheng@huawei.com>2014-06-30 15:55:27 +0800
commit2d6fe57413f16e005b95648af9cb1ad85bda3a3a (patch)
tree5c3d8e6e84581ad08291a8e5de0e32c2b27a65c4
parentef6f9bc46a33a677df702e4dc9cfc53d03c49628 (diff)
downloadoslo-config-2d6fe57413f16e005b95648af9cb1ad85bda3a3a.tar.gz
Fix flaws in methods' docstring
Change-Id: Idaebbc5702daeabc22b44672ce7b7d301a725871
-rw-r--r--oslo/config/cfg.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/oslo/config/cfg.py b/oslo/config/cfg.py
index 21ec818..9257c6b 100644
--- a/oslo/config/cfg.py
+++ b/oslo/config/cfg.py
@@ -714,7 +714,7 @@ class Opt(object):
:param short: the short opt name
:param kwargs: the keyword arguments for add_argument()
:param prefix: an optional prefix to prepend to the opt name
- :param position: whether the optional is a positional CLI argument
+ :param positional: whether the option is a positional CLI argument
"""
def hyphen(arg):
return arg if not positional else ''
@@ -1926,7 +1926,7 @@ class ConfigOpts(collections.Mapping):
searched by the module level find_config_files() function is
used. The first matching file is returned.
- :param basename: the filename, e.g. 'policy.json'
+ :param name: the filename, e.g. 'policy.json'
:returns: the path to a matching file, or None
"""
dirs = []