aboutsummaryrefslogtreecommitdiff
path: root/src/td.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/td.in')
-rwxr-xr-xsrc/td.in13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/td.in b/src/td.in
index c6a7e9f..c1ce0ff 100755
--- a/src/td.in
+++ b/src/td.in
@@ -10,7 +10,7 @@ add_msg() {
MSG_USAGE="$(cat <<-'EOF'
Usage:
@NAME@ [-c] [-m MESSAGE] [-t TYPE] [-s STATE] [-F RC_FILE]
- @NAME@ [-HlL]
+ @NAME@ [-HSlL]
@NAME@ [-hV]
EOF
)"
@@ -28,6 +28,7 @@ MSG_HELP1="$(cat <<-'EOF'
-l list the supported values for $TD_USE_BUILTIN_HOOKS
-L lint the issues file
-H pre-process issues file before generating HTML
+ -S dump suggested CSS
-h, --help show this help message
-V, --version print the version number
@@ -360,6 +361,10 @@ html_pre_process() {
html_process_ids
}
+dump_suggested_css() {
+ cat '@DATADIR@/style.css'
+}
+
#
@@ -482,7 +487,7 @@ for flag in "$@"; do
esac
done
-OPTIONS='cm:t:s:F:lLHhV'
+OPTIONS='cm:t:s:F:lLHShV'
RC_FILE="$PWD/.tdrc"
while getopts ":$OPTIONS" flag; do
@@ -548,6 +553,10 @@ while getopts "$OPTIONS" flag; do
html_pre_process < "$TD_FILE"
exit
;;
+ S)
+ dump_suggested_css
+ exit
+ ;;
h)
usage
help