Improve help.

master
Dominik Schrempf 8 years ago
parent 333ae6e995
commit 13bfbd9d61
  1. 17
      syncthing-resolve-conflicts

@ -69,16 +69,17 @@ usage() {
cat <<EOF cat <<EOF
${myname} v${myver} ${myname} v${myver}
Inspired by 'pacdiff'. Inspired by 'pacdiff'. A simple program to merge or remove sync conflicts.
A simple program to merge or remove sync conflicts. Locate is used to find conflicts. In case the database is not recent, run
Locate is used to find conflicts. 'updatedb'.
In case the database is not recent, run 'updatedb'.
Usage: $myname [-o] [--nocolor] Usage: $myname [-o] [--nocolor]
General Options: General Options:
-o/--output print files instead of merging them -o/--output print files instead of merging them
--nocolor remove colors from output --nocolor remove colors from output
-v/--version print version and exit
-h/--help print usage and exit
Environment Variables: Environment Variables:
DIFFPROG override the merge program: (default: 'vim -d') DIFFPROG override the merge program: (default: 'vim -d')
@ -90,8 +91,8 @@ EOF
} }
version() { version() {
printf "%s %s\n" "$myname" "$myver" printf "%s %s\\n" "$myname" "$myver"
echo 'Copyright (C) 2017 Dominik Schrempf <dominik.schrempf@gmail.com>' echo 'Copyright (C) 2018 Dominik Schrempf <dominik.schrempf@gmail.com>'
echo 'Inspired by "pacdiff".' echo 'Inspired by "pacdiff".'
} }
@ -169,8 +170,8 @@ while IFS= read -u 3 -r -d '' conflict; do
continue continue
fi fi
# XXX: Recursive sync conflicts lead to problems if they are # XXX: Recursive sync conflicts lead to problems if they are treated in the
# treated in the wrong order. # wrong order.
# TODO: Improve pattern match (digits only). # TODO: Improve pattern match (digits only).

Loading…
Cancel
Save