Skip to content

Commit

Permalink
add missing is_gui param
Browse files Browse the repository at this point in the history
  • Loading branch information
zaytiri committed Sep 23, 2023
1 parent 5d58bcd commit d28b707
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion phulize/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


def main(custom_args=None, is_gui=False):
arguments = Manager().configure_arguments(custom_args)
arguments = Manager().configure_arguments(custom_args, is_gui)

validate_settings(arguments['Settings'], is_gui)

Expand Down
2 changes: 1 addition & 1 deletion phulize/settings/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self):
self.args = argparse.ArgumentParser()
self.args.add_argument('--version', action='version', version='%(prog)s ' + str(get_version()))

def configure_arguments(self, custom_args=None, is_gui=None):
def configure_arguments(self, custom_args=None, is_gui=False):
# manage generic configurations
custom_settings = Settings()
custom_settings.set_is_gui(is_gui)
Expand Down

0 comments on commit d28b707

Please sign in to comment.