refactor: add -r and --recursive as aliases to --descend
This commit is contained in:
@@ -25,7 +25,7 @@ IMG_EXTENSIONS = [
|
||||
class Args(tap.TypedArgs):
|
||||
file_size: int = tap.arg("-s", default=10, help="Maximum file size in MB")
|
||||
directory: str = tap.arg("-d", default=".", help="Directory to search for files")
|
||||
descend: bool = tap.arg("--descend", default=False, help="Whether to descend into subdirectories")
|
||||
recursive: bool = tap.arg("-r", "--recursive", "--descend", default=False, help="Whether to recurse into subdirectories")
|
||||
use_geeqie: bool = tap.arg("--use-geeqie", default=False, help="Whether to use Geeqie as the image viewer")
|
||||
blacklist: list[str] | None = tap.arg("--blacklist", nargs="*", help="List of glob patterns to blacklist files")
|
||||
whitelist: list[str] | None = tap.arg("--whitelist", nargs="*", help="List of glob patterns to whitelist files")
|
||||
@@ -222,7 +222,7 @@ def main_with_tap(args: Args) -> None:
|
||||
app = MenuApp(
|
||||
directory=args.directory,
|
||||
file_limit=args.file_size,
|
||||
recurse=args.descend,
|
||||
recurse=args.recursive,
|
||||
blacklist=args.blacklist or [],
|
||||
whitelist=args.whitelist or [],
|
||||
use_geeqie=args.use_geeqie,
|
||||
|
||||
Reference in New Issue
Block a user