EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 63384b45 authored by Fabian Schindler's avatar Fabian Schindler
Browse files

Fixing `replace` argument for one-off registrations

parent ecc3e02c
No related branches found
No related tags found
2 merge requests!36Staging to master to prepare 1.0.0 release,!32Registrar modularization
......@@ -69,13 +69,13 @@ def daemon(config_file=None, validate=False, replace=False, host=None, port=None
@click.option('--validate/--no-validate', default=False)
@click.option('--replace/--no-replace', default=False)
@click.option('--debug/--no-debug', default=False)
def register(file_path, config_file=None, validate=False, debug=False):
def register(file_path, config_file=None, validate=False, replace=False, debug=False):
setup_logging(debug)
config = load_config(config_file)
if validate:
validate_config(config)
register_file(config, file_path)
register_file(config, file_path, replace)
if __name__ == '__main__':
cli()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment