corrected and enhanced the usage message (--help)
maybe put the recommended procedure from the top of the script there as well?
This commit is contained in:
parent
4f60e5e090
commit
d725c7cdb2
1 changed files with 4 additions and 2 deletions
|
@ -858,8 +858,10 @@ def allcfgfiles(dir):
|
||||||
|
|
||||||
def help():
|
def help():
|
||||||
sys.stderr.write("""\
|
sys.stderr.write("""\
|
||||||
Usage: wmllint [options]
|
Usage: wmllint [options] [dir]
|
||||||
Convert Battle of Wesnoth WML from older versions to newer ones.
|
Convert Battle of Wesnoth WML from older versions to newer ones.
|
||||||
|
Takes any number of directories as arguments. Each directory is converted.
|
||||||
|
If no directories are specified, acts on the current directory.
|
||||||
Options may be any of these:
|
Options may be any of these:
|
||||||
-h, --help Emit this help message and quit.
|
-h, --help Emit this help message and quit.
|
||||||
-d, --dryrun List changes but don't perform them.
|
-d, --dryrun List changes but don't perform them.
|
||||||
|
@ -868,7 +870,7 @@ Usage: wmllint [options]
|
||||||
-v -v names each file before it's processed.
|
-v -v names each file before it's processed.
|
||||||
-v -v -v shows verbose parse details.
|
-v -v -v shows verbose parse details.
|
||||||
-c, --clean Clean up -bak files.
|
-c, --clean Clean up -bak files.
|
||||||
-D, --diff Display diffs between unconverted and unconverted files.
|
-D, --diff Display diffs between converted and unconverted files.
|
||||||
-r, --revert Revert the conversion from the -bak files.
|
-r, --revert Revert the conversion from the -bak files.
|
||||||
-s, --stripcr Convert DOS-style CR/LF to Unix-style LF.
|
-s, --stripcr Convert DOS-style CR/LF to Unix-style LF.
|
||||||
--future Enable experimental WML conversions.
|
--future Enable experimental WML conversions.
|
||||||
|
|
Loading…
Add table
Reference in a new issue