summaryrefslogtreecommitdiff
path: root/src/console_cmds.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-08-11 17:15:31 +0000
committerglx <glx@openttd.org>2008-08-11 17:15:31 +0000
commit9fa2cbd93e90f6e9ba4e37280f7fda16b188e130 (patch)
tree249233fcb38e652246c309bad228d181cdaa28cd /src/console_cmds.cpp
parent2a935c9025bdc48c4caccba7011182cba54b7de4 (diff)
downloadopenttd-9fa2cbd93e90f6e9ba4e37280f7fda16b188e130.tar.xz
(svn r14041) -Feature(tte): make it possible to filter list_patches output like it's done for other list_* console commands
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r--src/console_cmds.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index c73c76468..2286f865f 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -1267,13 +1267,13 @@ DEF_CONSOLE_CMD(ConPatch)
DEF_CONSOLE_CMD(ConListPatches)
{
if (argc == 0) {
- IConsoleHelp("List patch options. Usage: 'list_patches'");
+ IConsoleHelp("List patch options. Usage: 'list_patches [<pre-filter>]'");
return true;
}
- if (argc != 1) return false;
+ if (argc > 2) return false;
- IConsoleListPatches();
+ IConsoleListPatches((argc == 2) ? argv[1] : NULL);
return true;
}