Skip to content

Commit

Permalink
fix command line flag handling
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Dec 16, 2024
1 parent 090ff60 commit 708e2c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exe/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ int main(int ac, char** av) {

case cista::hash("config"): {
auto paths = std::vector<std::string>{};
for (auto i = 0; i != ac; ++i) {
for (auto i = 1; i != ac; ++i) {
paths.push_back(std::string{av[i]});
}
if (paths.empty() || paths.front() == "--help") {
Expand Down

0 comments on commit 708e2c4

Please sign in to comment.