mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-12 17:51:20 +00:00
added docdiff and removed un-necessary files
This commit is contained in:
9
wnf.py
9
wnf.py
@@ -56,7 +56,10 @@ def setup_options():
|
||||
help="export doc")
|
||||
parser.add_option('--install', nargs=3, metavar = "rootpassword dbname source",
|
||||
help="install fresh db")
|
||||
parser.add_option('--sync_with_gateway', nargs=1, metavar = "1/0", help="Set or Unset Sync with Gateway")
|
||||
parser.add_option('--sync_with_gateway', nargs=1, metavar = "1/0", \
|
||||
help="Set or Unset Sync with Gateway")
|
||||
parser.add_option('--docdiff', nargs=0, \
|
||||
help="Get diff between .txt files and database records")
|
||||
|
||||
return parser.parse_args()
|
||||
|
||||
@@ -152,6 +155,10 @@ def run():
|
||||
else:
|
||||
webnotes.message_log.append("ERROR: sync_with_gateway can be either 0 or 1")
|
||||
|
||||
elif options.docdiff is not None:
|
||||
import webnotes.modules.diff
|
||||
webnotes.modules.diff.diff()
|
||||
|
||||
# print messages
|
||||
if webnotes.message_log:
|
||||
print '\n'.join(webnotes.message_log)
|
||||
|
||||
Reference in New Issue
Block a user