Tidying
This commit is contained in:
13
src/main.cpp
13
src/main.cpp
@ -1,10 +1,9 @@
|
||||
#include "main.hpp"
|
||||
#include "version.hpp"
|
||||
#include "config.hpp"
|
||||
#include "service_runner.hpp"
|
||||
#include "services.hpp"
|
||||
#include "servers.hpp"
|
||||
#include "utils/directories.hpp"
|
||||
#include "config.hpp"
|
||||
#include "templates.hpp"
|
||||
#include <boost/filesystem.hpp>
|
||||
|
||||
@ -14,6 +13,14 @@
|
||||
|
||||
namespace dropshell {
|
||||
|
||||
void print_version() {
|
||||
std::cout << "dropshell version " << VERSION << std::endl;
|
||||
std::cout << "Release date: " << RELEASE_DATE << std::endl;
|
||||
std::cout << "Author: " << AUTHOR << std::endl;
|
||||
std::cout << "License: " << LICENSE << std::endl;
|
||||
}
|
||||
|
||||
|
||||
void print_help() {
|
||||
std::cout << "Usage: dropshell [OPTIONS] COMMAND [ARGS]" << std::endl;
|
||||
std::cout << std::endl;
|
||||
@ -162,7 +169,7 @@ int main(int argc, char* argv[]) {
|
||||
|
||||
// No arguments provided
|
||||
if (argc < 2) {
|
||||
dropshell::interactive_mode();
|
||||
dropshell::print_help();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user