Here are some considerations on how to take user credentials:
From the CLI:
--user {username}
--pass {password}
From a file:
--credentials {filename} username and password must be separated by a newline character
From Cookies:
-c/--cookies {cookie-file} cookies.txt style file
-C/--cookies-from-browser {browser} extract cookies from the given browser
Related crates: