Auto-add --help if CLI run w/o args

(Commit message edited by @jsvine.)
This commit is contained in:
nobody
2025-05-19 08:31:53 -04:00
committed by Jeremy Singer-Vine
parent 02ff4313f8
commit cd6fd70fe1
+4
View File
@@ -9,6 +9,10 @@ from typing import Any, DefaultDict, Dict, List
from .pdf import PDF
if len(sys.argv) == 1:
sys.argv.append('--help')
def parse_page_spec(p_str: str) -> List[int]:
if "-" in p_str:
start, end = map(int, p_str.split("-"))