In building a custom command I am trying to validated the presence/absence of an option:
Sample code doing the assignment can be found below
results,dummyresults,settings = splunk.Intersplunk.getOrganizedResults()
field = options.get('field', None)
charsense = options.get('detect', None)
Very simply I want to assign none to charsense if the option is not present.
Conversely, I would like to NOT perform character detection if the value is not present.
Additionally, any way to present a usage to the user in the event they do not give either option would be beneficial.
Thank you very much, you guys and gals are always a huge help
... View more