summaryrefslogtreecommitdiff
path: root/args/args.go
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2025-01-05 15:35:51 -0800
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2025-01-05 15:36:09 -0800
commit6109b9ff733d6bfb9fff4d107036f0b6214662d4 (patch)
tree77496306cdd15f894117975d2fa4c76bf4a52067 /args/args.go
parent2984a715b830410b6d6ce2a8aaa1fc8a2388ee99 (diff)
downloadphoneof-6109b9ff733d6bfb9fff4d107036f0b6214662d4.tar.gz
phoneof-6109b9ff733d6bfb9fff4d107036f0b6214662d4.zip
dynamically specify topic in text
Diffstat (limited to 'args/args.go')
-rw-r--r--args/args.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/args/args.go b/args/args.go
index 6c112c6..ae18865 100644
--- a/args/args.go
+++ b/args/args.go
@@ -18,7 +18,6 @@ type Arguments struct {
HttpSmsEndpoint string
NtfyEndpoint string
- NtfyTopic string
Port int
Server bool
@@ -63,8 +62,7 @@ func GetArgs() (*Arguments, error) {
httpSmsEndpoint := flag.String("httpsms-endpoint", "https://httpsms.com", "HTTPSMS endpoint")
- ntfyTopic := flag.String("ntfy-topic", "sms", "NTFY endpoint")
- ntfyEndpoint := flag.String("ntfy-endpoint", "https://ntfy.simponic.hatecomputers.club", "HTTPSMS endpoint")
+ ntfyEndpoint := flag.String("ntfy-endpoint", "https://ntfy.simponic.hatecomputers.club", "NTFY endpoint")
scheduler := flag.Bool("scheduler", false, "Run scheduled jobs via cron")
migrate := flag.Bool("migrate", false, "Run the migrations")
@@ -83,7 +81,6 @@ func GetArgs() (*Arguments, error) {
Migrate: *migrate,
Scheduler: *scheduler,
HttpSmsEndpoint: *httpSmsEndpoint,
- NtfyTopic: *ntfyTopic,
NtfyEndpoint: *ntfyEndpoint,
}
err := validateArgs(args)