@@ -468,27 +468,30 @@ def main(ctx, body, title, config, attach, urls, notification_type, theme, tag,
468
468
# Simple Error Checking
469
469
notification_type = notification_type .strip ().lower ()
470
470
if notification_type not in NOTIFY_TYPES :
471
- logger . error (
471
+ click . echo (
472
472
'The --notification-type (-n) value of {} is not supported.'
473
473
.format (notification_type ))
474
+ click .echo ("Try 'apprise --help' for more information." )
474
475
# 2 is the same exit code returned by Click if there is a parameter
475
476
# issue. For consistency, we also return a 2
476
477
ctx .exit (2 )
477
478
478
479
input_format = input_format .strip ().lower ()
479
480
if input_format not in NOTIFY_FORMATS :
480
- logger . error (
481
+ click . echo (
481
482
'The --input-format (-i) value of {} is not supported.'
482
483
.format (input_format ))
484
+ click .echo ("Try 'apprise --help' for more information." )
483
485
# 2 is the same exit code returned by Click if there is a parameter
484
486
# issue. For consistency, we also return a 2
485
487
ctx .exit (2 )
486
488
487
489
storage_mode = storage_mode .strip ().lower ()
488
490
if storage_mode not in PERSISTENT_STORE_MODES :
489
- logger . error (
491
+ click . echo (
490
492
'The --storage-mode (-SM) value of {} is not supported.'
491
493
.format (storage_mode ))
494
+ click .echo ("Try 'apprise --help' for more information." )
492
495
# 2 is the same exit code returned by Click if there is a parameter
493
496
# issue. For consistency, we also return a 2
494
497
ctx .exit (2 )
@@ -500,9 +503,10 @@ def main(ctx, body, title, config, attach, urls, notification_type, theme, tag,
500
503
if exists (path_decode (path ))]
501
504
502
505
if storage_uid_length < 2 :
503
- logger . error (
506
+ click . echo (
504
507
'The --storage-uid-length (-SUL) value can not be lower '
505
508
'then two (2).' )
509
+ click .echo ("Try 'apprise --help' for more information." )
506
510
507
511
# 2 is the same exit code returned by Click if there is a
508
512
# parameter issue. For consistency, we also return a 2
@@ -683,9 +687,10 @@ def main(ctx, body, title, config, attach, urls, notification_type, theme, tag,
683
687
asset = asset , recursion = recursion_depth ))
684
688
685
689
if not dry_run and not (a or storage_action ):
686
- logger . error (
690
+ click . echo (
687
691
'You must specify at least one server URL or populated '
688
692
'configuration file.' )
693
+ click .echo ("Try 'apprise --help' for more information." )
689
694
ctx .exit (1 )
690
695
691
696
# each --tag entry comprises of a comma separated 'and' list
@@ -700,9 +705,10 @@ def main(ctx, body, title, config, attach, urls, notification_type, theme, tag,
700
705
# - urls are now to be interpreted as best matching namespaces
701
706
#
702
707
if storage_prune_days < 0 :
703
- logger . error (
708
+ click . echo (
704
709
'The --storage-prune-days (-SPD) value can not be lower '
705
710
'then zero (0).' )
711
+ click .echo ("Try 'apprise --help' for more information." )
706
712
707
713
# 2 is the same exit code returned by Click if there is a
708
714
# parameter issue. For consistency, we also return a 2
0 commit comments