Skip to content

Commit

Permalink
improve includes
Browse files Browse the repository at this point in the history
  • Loading branch information
ggutierrez-sunbright committed Feb 15, 2024
1 parent e82be83 commit 5d51fae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/RbtArgParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
#define _RBTARGPARSER_H_

#include <cxxopts.hpp>
#include <iostream>
#include <string>
#include <vector>

namespace RbtArgParser {

using parsing_error = cxxopts::exceptions::parsing;
typedef std::vector<std::string> ArgsSubstitutions;

class RbtArgParser {
Expand Down
3 changes: 1 addition & 2 deletions src/exe/rbcavity.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// Standalone executable for generating docking site .as files for rbdock

#include <algorithm>
#include <cxxopts.hpp>
#include <iomanip>

#include "RbtArgParser.h"
Expand Down Expand Up @@ -101,7 +100,7 @@ RBCavityConfig parse_args(int argc, const char *argv[]) {

config.validate();
return config;
} catch (cxxopts::exceptions::parsing &e) {
} catch (RbtArgParser::parsing_error &e) {
std::cerr << "Error parsing options: " << e.what() << std::endl;
} catch (RbtArgParser::ValidationError &e) {
std::cerr << "Invalid configuration: " << e.what() << std::endl;
Expand Down

0 comments on commit 5d51fae

Please sign in to comment.