Add _Default class

This commit is contained in:
Brad Warren
2016-03-31 15:31:26 -07:00
parent 1802cee2e6
commit 2d9860e2ce
+4
View File
@@ -99,6 +99,10 @@ def usage_strings(plugins):
return USAGE % (apache_doc, nginx_doc), SHORT_USAGE
class _Default(object):
"""Trivial class used to detect if an option was set by the user."""
def set_by_cli(var):
"""
Return True if a particular config variable has been set by the user