cli: implement limit flag
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 19 Jun 2014 11:51:28 +0000 (13:51 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 19 Jun 2014 12:00:21 +0000 (14:00 +0200)
commitcdc760c58077f44fc40adbbe41e1556a67c1b9a9
tree21ddc60f1e8ffdc644536ab2bfa73ee048d938f8
parent6f49eeec51e1697496d97479d41ff31cb4563270
cli: implement limit flag

The new "-l" flag allows limiting the number of results getting printed.
This is useful for expressions which match many items when only the first
is desired.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
main.c