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
commit16aac30c668be700f1447460422f526bad1c6693 (patch)
tree249233fcb38e652246c309bad228d181cdaa28cd /src/console_cmds.cpp
parentebe9ae2b1755c619953a591c35613e7315954817 (diff)
downloadopenttd-16aac30c668be700f1447460422f526bad1c6693.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;
}