浏览代码

libpython make_command(): say in msg which module call needs an update

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@63385 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 10 年之前
父节点
当前提交
3d71245dea
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/python/script/core.py

+ 2 - 2
lib/python/script/core.py

@@ -280,11 +280,11 @@ def make_command(prog, flags="", overwrite=False, quiet=False, verbose=False,
         if val != None:
             if opt.startswith('_'):
                 opt = opt[1:]
-                warning(_("To run the module add underscore at the end"
+                warning(_("To run the module <%s> add underscore at the end"
                     " of the option <%s> to avoid conflict with Python"
                     " keywords. Underscore at the beginning is"
                     " depreciated in GRASS GIS 7.0 and will be removed"
-                    " in version 7.1.") % opt)
+                    " in version 7.1.") % (prog, opt))
             elif opt.endswith('_'):
                 opt = opt[:-1]
             args.append("%s=%s" % (opt, _make_val(val)))