Skip to content

Commit

Permalink
adds documentation
Browse files Browse the repository at this point in the history
Signed-off-by: bonni <[email protected]>
  • Loading branch information
bonni authored and mgallien committed Dec 5, 2023
1 parent 05b81da commit e6014d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions man/nextcloudcmd.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ OPTIONS

``—non-interactive``
Do not prompt for questions.
Tries to read $NC_USER and $NC_PASSWORD from the environment.

``—silent``, ``—s``
Inhibits verbose log output.
Expand Down
3 changes: 2 additions & 1 deletion src/cmd/cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ void help()
std::cout << " --user, -u [name] Use [name] as the login name" << std::endl;
std::cout << " --password, -p [pass] Use [pass] as password" << std::endl;
std::cout << " -n Use netrc (5) for login" << std::endl;
std::cout << " --non-interactive Do not block execution with interaction" << std::endl;
std::cout << " --non-interactive Do not block execution with interaction and tries to read $NC_USER and $NC_PASSWORD if not set by other means" << std::endl;
std::cout << " --max-sync-retries [n] Retries maximum n times (default to 3)" << std::endl;
std::cout << " --uplimit [n] Limit the upload speed of files to n KB/s" << std::endl;
std::cout << " --downlimit [n] Limit the download speed of files to n KB/s" << std::endl;
Expand Down Expand Up @@ -360,6 +360,7 @@ int main(int argc, char **argv)
// 2. From options
// 3. From netrc (if enabled)
// 4. From prompt (if interactive)
// 4. From environment (if non-interactive)

QString user = hostUrl.userName();
QString password = hostUrl.password();
Expand Down

0 comments on commit e6014d8

Please sign in to comment.