Skip to content

Commit a01f27a

Browse files
author
Tom O'Hara
committed
adds --help; fleshes out example usage
1 parent 4d12899 commit a01f27a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

adhoc/show-KDE-settings.bash

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fi
2626
# in $@.
2727
# NOTE: See sync-loop.sh for an example.
2828
#
29-
if [[ "$1" == "" ]]; then
29+
if [[ ("$1" == "") || ("$1" == "--help") ]]; then
3030
script=$(basename "$0")
3131
## TODO: remove following which is only meant for when ./template.bash run
3232
if [[ "$script" == "template.bash" ]]; then echo "Warning: not intended for standalone usage"; fi;
@@ -38,11 +38,10 @@ if [[ "$1" == "" ]]; then
3838
echo ""
3939
echo "Examples:"
4040
echo ""
41-
## TODO: example 1
42-
echo "$0 example 1"
41+
echo "$0 -"
4342
echo ""
44-
## TODO: example 2
45-
echo "$script example 2"
43+
echo 'ddmmmyy=$(date '+%d%b%y')'
44+
echo "$script - > ~/config/show-KDE-settings.\$ddmmmyy.log 2>&1"
4645
echo ""
4746
echo "Notes:"
4847
echo "- The -- option is to use default options and to avoid usage statement."

0 commit comments

Comments
 (0)