mirror of
https://github.com/craigerl/aprsd.git
synced 2025-04-10 05:28:58 -04:00
Fixed --quiet option
This patch fixes the --quiet option for both send-message and server commands. Don't write anything to STDOUT.
This commit is contained in:
parent
90c4c6c59d
commit
f022a3e421
@ -249,9 +249,9 @@ def send_message(
|
||||
"""Send a message to a callsign via APRS_IS."""
|
||||
global got_ack, got_response
|
||||
|
||||
click.echo("{} {} {} {}".format(aprs_login, aprs_password, tocallsign, command))
|
||||
|
||||
click.echo("Load config")
|
||||
if not quiet:
|
||||
click.echo("{} {} {} {}".format(aprs_login, aprs_password, tocallsign, command))
|
||||
click.echo("Load config")
|
||||
config = utils.parse_config(config_file)
|
||||
if not aprs_login:
|
||||
click.echo("Must set --aprs_login or APRS_LOGIN")
|
||||
@ -382,7 +382,8 @@ def server(loglevel, quiet, disable_validation, config_file, flush):
|
||||
event = threading.Event()
|
||||
signal.signal(signal.SIGINT, signal_handler)
|
||||
|
||||
click.echo("Load config")
|
||||
if not quiet:
|
||||
click.echo("Load config")
|
||||
config = utils.parse_config(config_file)
|
||||
|
||||
# Force setting the config to the modules that need it
|
||||
|
Loading…
Reference in New Issue
Block a user