From 43521f603cf0e1948a206f40df9d7f5f643a48ab Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Sun, 9 Mar 2025 19:25:34 +0100 Subject: [PATCH] resolve cmd ambiguity, just support pipe input (#124) --- main.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/main.cpp b/main.cpp index e6be23b..dc4d972 100644 --- a/main.cpp +++ b/main.cpp @@ -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(), "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(), "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(); - return ct::process_command(command); - } - if ((!vm.count("username"))) { std::cout << "Username option is required, specify with "