Skip to content

Commit e2e4cb1

Browse files
author
Sam Stelle
committed
Added a title parameter to modularinputs argument class.
1 parent d88e31e commit e2e4cb1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

splunklib/modularinput/argument.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class Argument(object):
4848
data_type_string = "STRING"
4949

5050
def __init__(self, name, description=None, validation=None,
51-
data_type=data_type_string, required_on_edit=False, required_on_create=False):
51+
data_type=data_type_string, required_on_edit=False, required_on_create=False, title=None):
5252
"""
5353
:param name: ``string``, identifier for this argument in Splunk.
5454
:param description: ``string``, human-readable description of the argument.
@@ -58,6 +58,7 @@ def __init__(self, name, description=None, validation=None,
5858
"data_type_boolean", "data_type_number", or "data_type_string".
5959
:param required_on_edit: ``Boolean``, whether this arg is required when editing an existing modular input of this kind.
6060
:param required_on_create: ``Boolean``, whether this arg is required when creating a modular input of this kind.
61+
:param title: ``String``, a human-readable title for the argument.
6162
"""
6263
self.name = name
6364
self.description = description

0 commit comments

Comments
 (0)