diff --git a/webcomix/main.py b/webcomix/main.py
index 0053bbb..cba546d 100644
--- a/webcomix/main.py
+++ b/webcomix/main.py
@@ -56,7 +56,12 @@ def download(name, cbz):
     default=False,
     is_flag=True,
     help="Outputs the comic as a cbz file")
-def search(name, start_url, cbz):
+@click.option(
+    "-y",
+    default=False,
+    is_flag=True,
+    help="Assumes 'yes' as an answer to all prompts")
+def search(name, start_url, cbz, y):
     """
     Downloads a webcomic using a general XPath
     """
@@ -67,8 +72,8 @@ def search(name, start_url, cbz):
                                         comic.comic_image_selector)
         print_verification(validation)
         click.echo(
-            "Verify that the links above are correct before proceeding.")
-        if click.confirm("Are you sure you want to proceed?"):
+            "Verify that the links above are correct.")
+        if y or click.confirm("Are you sure you want to proceed?"):
             comic.download(name)
             if cbz:
                 comic.make_cbz(name, name)
@@ -100,7 +105,12 @@ def search(name, start_url, cbz):
     default=False,
     is_flag=True,
     help="Outputs the comic as a cbz file")
-def custom(comic_name, start_url, next_page_xpath, image_xpath, cbz):
+@click.option(
+    "-y",
+    default=False,
+    is_flag=True,
+    help="Assumes 'yes' as an answer to all prompts")
+def custom(comic_name, start_url, next_page_xpath, image_xpath, cbz, y):
     """
     Downloads a user-defined webcomic
     """
@@ -109,8 +119,8 @@ def custom(comic_name, start_url, next_page_xpath, image_xpath, cbz):
                                     comic.next_page_selector,
                                     comic.comic_image_selector)
     print_verification(validation)
-    click.echo("Verify that the links above are correct before proceeding.")
-    if click.confirm("Are you sure you want to proceed?"):
+    click.echo("Verify that the links above are correct.")
+    if y or click.confirm("Are you sure you want to proceed?"):
         comic.download(comic_name)
         if cbz:
             comic.make_cbz(comic_name, comic_name)

Custom: Add a -y (yes) option
Looking to use this as a replacement for Dosage, as this allows for custom comics. I'd like to run this daily (or every few days) on a number of comics to pull latest comic. The prompting on Custom Comics (are you sure) is a stumbling block to script it. Can you maybe add a -y to custom, for auto-acknowledging?
diff --git a/webcomix/tests/test_main.py b/webcomix/tests/test_main.py
index ec2c718..c2dcf42 100644
--- a/webcomix/tests/test_main.py
+++ b/webcomix/tests/test_main.py
@@ -100,7 +100,7 @@ def test_custom(monkeypatch):
     assert result.exit_code == 0
     assert result.output.strip() == "\n".join([
         "Verified", "Printed",
-        "Verify that the links above are correct before proceeding.",
+        "Verify that the links above are correct.",
         "Are you sure you want to proceed? [y/N]: yes", "foo"
     ])
 
@@ -119,7 +119,7 @@ def test_custom_make_cbz(monkeypatch):
     assert result.exit_code == 0
     assert result.output.strip() == "\n".join([
         "Verified", "Printed",
-        "Verify that the links above are correct before proceeding.",
+        "Verify that the links above are correct.",
         "Are you sure you want to proceed? [y/N]: y", "foo", ".cbz created"
     ])
 
@@ -139,6 +139,6 @@ def test_search(monkeypatch):
     assert result.exit_code == 0
     assert result.output.strip() == "\n".join([
         "Verified", "Printed",
-        "Verify that the links above are correct before proceeding.",
+        "Verify that the links above are correct.",
         "Are you sure you want to proceed? [y/N]: y", "foo"
     ])

pip install --editable .
parse_log_pytest
requirements.txt
pytest
3.9
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
certifi==2025.1.31
charset-normalizer==3.4.1
click==8.1.8
exceptiongroup==1.2.2
fake-useragent==2.1.0
idna==3.10
importlib_resources==6.5.2
iniconfig==2.1.0
lxml==5.3.1
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
requests==2.32.3
tomli==2.2.1
urllib3==2.3.0
-e git+https://github.com/J-CPelletier/webcomix.git@25d394314ce26816302e9c878f5cebfb853c16fb#egg=webcomix
zipp==3.21.0

name: webcomix
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - certifi==2025.1.31
      - charset-normalizer==3.4.1
      - click==8.1.8
      - exceptiongroup==1.2.2
      - fake-useragent==2.1.0
      - idna==3.10
      - importlib-resources==6.5.2
      - iniconfig==2.1.0
      - lxml==5.3.1
      - packaging==24.2
      - pluggy==1.5.0
      - pytest==8.3.5
      - requests==2.32.3
      - tomli==2.2.1
      - urllib3==2.3.0
      - zipp==3.21.0
prefix: /opt/conda/envs/webcomix

webcomix/tests/test_main.py::test_custom webcomix/tests/test_main.py::test_custom_make_cbz webcomix/tests/test_main.py::test_search
webcomix/tests/test_main.py::test_print_verification webcomix/tests/test_main.py::test_comics webcomix/tests/test_main.py::test_good_download webcomix/tests/test_main.py::test_bad_download webcomix/tests/test_main.py::test_good_download_makecbz webcomix/tests/test_main.py::test_bad_download_make_cbz
webcomix/main.py
webcomix/main.py