diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-10-09 00:28:15 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-10-09 00:28:15 +0300 |
commit | cbd59f360fc1f61d264c35e0ee7b547c70c49a99 (patch) | |
tree | d1e45ccf6f4294b0f92b0eae8bc5e829dace17f8 | |
parent | bugfix (diff) | |
download | config-links-cbd59f360fc1f61d264c35e0ee7b547c70c49a99.tar.gz config-links-cbd59f360fc1f61d264c35e0ee7b547c70c49a99.zip |
-s|--source -> -c|--config-dir
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | update.sh | 17 |
2 files changed, 11 insertions, 10 deletions
@@ -29,9 +29,9 @@ Default database file name is "db.bin". Usage ----- - usage: update.sh [-d|--database PATH] [-s|--source DIR] [-n|--dry-run] [-h|--help] + usage: update.sh [-d|--database PATH] [-c|--config-dir DIR] [-n|--dry-run] [-h|--help] -To update the symlinks, run `./update.sh -d test.bin -s test`, substituting the +To update the symlinks, run `./update.sh -d test.bin -c test`, substituting the database file name for `test.bin` and directory path for `test`. Requires Cygwin. @@ -17,7 +17,7 @@ # `CYGWIN` Windows environment variable value **must** include either # `winsymlinks:native` or `winsymlinks:nativestrict`! -# usage: ./update.sh [-d|--database PATH] [-s|--source DIR] [-n|--dry-run] [-h|--help] +# usage: ./update.sh [-d|--database PATH] [-c|--config-dir DIR] [-n|--dry-run] [-h|--help] set -o errexit set -o nounset @@ -261,12 +261,13 @@ discover_new_entries() { exit_with_usage() { local msg IFS= read -d '' -r msg <<MSG || echo -n "$msg" || true -usage: $script_argv0 [-d|--database PATH] [-s|--source DIR] [-n|--dry-run] [-h|--help] +usage: $script_argv0 [-d|--database PATH] [-c|--config-dir DIR] [-n|--dry-run] [-h|--help] optional parameters: - -h,--help show this message and exit - -d,--database set database file path - -s,--source set source directory path (script directory by default) - -n,--dry-run don't actually do anything intrusive + -h,--help show this message and exit + -d,--database set database file path + -c,--config-dir set configuration files directory path + (script directory by default) + -n,--dry-run don't actually do anything intrusive MSG exit "${exit_with_usage:-0}" } @@ -287,7 +288,7 @@ parse_script_options() { continue ;; - -d|--database|-s|--source) + -d|--database|-c|--config-dir) ;; *) @@ -311,7 +312,7 @@ parse_script_options() { update_database_path "$value" ;; - -s|--source) + -c|--config-dir) update_src_dir "$value" ;; |