Skip to content

Commit

Permalink
Fix args
Browse files Browse the repository at this point in the history
  • Loading branch information
wichtounet committed Oct 15, 2023
1 parent 394db6f commit 218c787
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/args.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace budget {

std::vector<std::string> parse_args(int argc, const char* argv[], const std::vector<std::pair<const char*, const char*>>& aliases);
std::vector<std::string> parse_args(int argc, char* argv[], const std::vector<std::pair<const char*, const char*>>& aliases);
void enough_args(const std::vector<std::string>& args, size_t min);

} //end of namespace budget
2 changes: 1 addition & 1 deletion src/args.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "budget_exception.hpp"
#include "utils.hpp"

std::vector<std::string> budget::parse_args(int argc, const char* argv[], const std::vector<std::pair<const char*, const char*>>& aliases){
std::vector<std::string> budget::parse_args(int argc, char* argv[], const std::vector<std::pair<const char*, const char*>>& aliases){
std::vector<std::string> args;

for(int i = 0; i < argc - 1; ++i){
Expand Down

0 comments on commit 218c787

Please sign in to comment.