diff --git a/factsdb/cli.py b/factsdb/cli.py index 45e43d9..ba60592 100644 --- a/factsdb/cli.py +++ b/factsdb/cli.py @@ -77,7 +77,7 @@ def status(): @cli.command() @click.option('--host', '-h', default='0.0.0.0', help='FTP server host') -@click.option('--port', '-p', default=21, type=int, help='FTP server port') +@click.option('--port', '-p', default=2122, type=int, help='FTP server port') def ftp(host: str, port: int): """Start FTP server""" config = Config() @@ -107,7 +107,7 @@ def ftp(host: str, port: int): click.echo("FTP Server stopped") except Exception as e: - click.echo(f"Error starting FTP server: {str(e)}") + click.click.echo(f"Error starting FTP server: {str(e)}") @cli.command() def tables():