|
|
@ -11,8 +11,8 @@ |
|
|
|
#include "config.h" |
|
|
|
#include "config.h" |
|
|
|
#include "dotfile.h" |
|
|
|
#include "dotfile.h" |
|
|
|
#include "package.h" |
|
|
|
#include "package.h" |
|
|
|
#include "util/argparser.h" |
|
|
|
#include "ruc/argparser.h" |
|
|
|
#include "util/timer.h" |
|
|
|
#include "ruc/timer.h" |
|
|
|
|
|
|
|
|
|
|
|
int main(int argc, const char* argv[]) |
|
|
|
int main(int argc, const char* argv[]) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -28,7 +28,7 @@ int main(int argc, const char* argv[]) |
|
|
|
|
|
|
|
|
|
|
|
std::vector<std::string> targets {}; |
|
|
|
std::vector<std::string> targets {}; |
|
|
|
|
|
|
|
|
|
|
|
Util::ArgParser argParser; |
|
|
|
ruc::ArgParser argParser; |
|
|
|
argParser.addOption(fileOperation, 'F', "file", nullptr, nullptr); |
|
|
|
argParser.addOption(fileOperation, 'F', "file", nullptr, nullptr); |
|
|
|
argParser.addOption(packageOperation, 'P', "package", nullptr, nullptr); |
|
|
|
argParser.addOption(packageOperation, 'P', "package", nullptr, nullptr); |
|
|
|
argParser.addOption(helpOperation, 'h', "help", nullptr, nullptr); |
|
|
|
argParser.addOption(helpOperation, 'h', "help", nullptr, nullptr); |
|
|
@ -39,7 +39,7 @@ int main(int argc, const char* argv[]) |
|
|
|
argParser.addOption(pushOrStore, 's', "push", nullptr, nullptr); |
|
|
|
argParser.addOption(pushOrStore, 's', "push", nullptr, nullptr); |
|
|
|
argParser.addOption(verbose, 'v', "verbose", nullptr, nullptr); |
|
|
|
argParser.addOption(verbose, 'v', "verbose", nullptr, nullptr); |
|
|
|
|
|
|
|
|
|
|
|
argParser.addArgument(targets, "targets", nullptr, nullptr, Util::ArgParser::Required::No); |
|
|
|
argParser.addArgument(targets, "targets", nullptr, nullptr, ruc::ArgParser::Required::No); |
|
|
|
argParser.parse(argc, argv); |
|
|
|
argParser.parse(argc, argv); |
|
|
|
|
|
|
|
|
|
|
|
if (fileOperation + packageOperation + helpOperation > 1) { |
|
|
|
if (fileOperation + packageOperation + helpOperation > 1) { |
|
|
@ -48,7 +48,7 @@ int main(int argc, const char* argv[]) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#ifndef NDEBUG |
|
|
|
#ifndef NDEBUG |
|
|
|
Util::Timer t; |
|
|
|
ruc::Timer t; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
Config::the().setVerbose(verbose); |
|
|
|
Config::the().setVerbose(verbose); |
|
|
|