Skip to content

Commit

Permalink
Fix error with if(string)
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Nov 28, 2017
1 parent 8be496e commit 986ebe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/CLI/App.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ class App {
remove_option(config_ptr_);

// Only add config if option passed
if(name) {
if(!name.empty()) {
config_name_ = default_filename;
config_required_ = required;
config_ptr_ = add_option(name, config_name_, help, !default_filename.empty());
Expand Down

0 comments on commit 986ebe8

Please sign in to comment.