Remove -d shorthand for --download-only (#577)

* Remove -d shorthand for --download-only to avoid confusion with other GNU applications where -d stands for 'debug'
This commit is contained in:
Norbert Preining 2019-07-10 12:23:44 +09:00 committed by abraunegg
parent 705f78bec8
commit ab7e321726
5 changed files with 5 additions and 5 deletions

View file

@ -12,7 +12,7 @@ _onedrive()
cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD-1]}
options='--check-for-nomount --check-for-nosync --debug-https --disable-notifications --display-config --display-sync-status -d --download-only --disable-upload-validation --dry-run --enable-logging --force-http-1.1 --local-first --logout -m --monitor --no-remote-delete --print-token --resync --skip-dot-files --skip-symlinks --synchronize --upload-only -v --verbose --version -h --help'
options='--check-for-nomount --check-for-nosync --debug-https --disable-notifications --display-config --display-sync-status --download-only --disable-upload-validation --dry-run --enable-logging --force-http-1.1 --local-first --logout -m --monitor --no-remote-delete --print-token --resync --skip-dot-files --skip-symlinks --synchronize --upload-only -v --verbose --version -h --help'
argopts='--create-directory --get-O365-drive-id --remove-directory --single-directory --source-directory'
# Loop on the arguments to manage conflicting options

View file

@ -15,7 +15,7 @@ all_opts=(
'--disable-notifications[Do not use desktop notifications in monitor mode.]'
'--display-config[Display what options the client will use as currently configured - no sync will be performed.]'
'--display-sync-status[Display the sync status of the client - no sync will be performed.]'
'(-d --download-only)'{-d,--download-only}'[Only download remote changes]'
'--download-only[Only download remote changes]'
'--disable-upload-validation[Disable upload validation when uploading to OneDrive]'
'--dry-run[Perform a trial sync with no changes made]'
'--enable-logging[Enable client activity to a separate log file]'

View file

@ -485,7 +485,7 @@ Options:
Display what options the client will use as currently configured - no sync will be performed.
--display-sync-status
Display the sync status of the client - no sync will be performed.
--download-only -d
--download-only
Only download remote changes
--dry-run
Perform a trial sync with no changes made

View file

@ -63,7 +63,7 @@ Display what options the client will use as currently configured \- no sync will
\fB\-\-display\-sync\-status\fP
Display the sync status of the client \- no sync will be performed.
.TP
\fB\-d \-\-download\-only\fP
\fB\-\-download\-only\fP
Only download remote changes
.br
Configuration file key: \fBdownload_only\fP (default: \fBfalse\fP)

View file

@ -201,7 +201,7 @@ final class Config
"display-sync-status",
"Display the sync status of the client - no sync will be performed.",
&boolValues["display_sync_status"],
"download-only|d",
"download-only",
"Only download remote changes",
&boolValues["download_only"],
"dry-run",