resolve cmd ambiguity, just support pipe input (#124)

This commit is contained in:
Levi Neely 2025-03-09 19:25:34 +01:00 committed by GitHub
parent 27977765e8
commit 43521f603c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 6 deletions

View File

@ -70,7 +70,6 @@ int main(int argc, char **argv) {
("commands ,o", po::bool_switch(&commands), "Keep parent process alive and process commands. ")
("mountpoint,m", po::value<std::string>(), "Specify where pCloud filesystem is mounted.")
("commands_only,k", po::bool_switch(&commands_only), "Open command prompt to interact with running daemon.")
("command,c", po::value<std::string>(), "Execute a single command and exit.")
("newuser,n", po::bool_switch(&newuser), "Register a new pCloud user account.")
("savepassword,s", po::bool_switch(&save_pass), "Save user password in the database.");
@ -100,11 +99,6 @@ int main(int argc, char **argv) {
}
}
if (vm.count("command")) {
std::string command = vm["command"].as<std::string>();
return ct::process_command(command);
}
if ((!vm.count("username"))) {
std::cout << "Username option is required, specify with "