[minor] added option to set mariadb password for setup help;

This commit is contained in:
Rushabh Mehta 2016-08-23 18:47:26 +05:30
parent c034750708
commit e91f5c8f7a

View file

@ -384,13 +384,16 @@ def get_version():
print "{0} {1}".format(m, module.__version__)
@click.command('setup-help')
def setup_help():
@click.option('--mariadb_root_password')
def setup_help(mariadb_root_password=None):
"Make a database for help documentation"
frappe.local.flags = frappe._dict()
frappe.local.flags.in_setup_help = True
frappe.local.flags.in_install = True
frappe.local.lang = 'en'
frappe.local.conf = frappe.get_site_config(sites_path='.')
if mariadb_root_password:
frappe.local.conf.root_password = mariadb_root_password
from frappe.utils.help import sync
sync()