summaryrefslogtreecommitdiff
path: root/webgen
diff options
context:
space:
mode:
Diffstat (limited to 'webgen')
-rwxr-xr-xwebgen8
1 files changed, 8 insertions, 0 deletions
diff --git a/webgen b/webgen
index a44db23..50bb758 100755
--- a/webgen
+++ b/webgen
@@ -72,6 +72,10 @@ setup() {
} > ./-end
}
+list_tpls() {
+ cd $TPLS
+ ls -1 -- +* \~* =* 2> /dev/null
+}
TEMPLATES_PAGE="*"
TEMPLATES_DYN="*"
@@ -92,6 +96,10 @@ do
setup
exit 0
;;
+ '--list')
+ list_tpls
+ exit 0
+ ;;
'--'*)
echo "Error: Unknown option: $1" >&2
exit 1