# NBIR — Numeric Bulk Image Renamer
Rename image files in a directory to a sequential numbered scheme (e.g. `base01.jpg`, `base02.png`).
## Installation
From [crates.io](https://crates.io):
```bash
cargo install nbir
```
From source:
```bash
git clone https://github.com/yourusername/simplebulkfilerenamer
cd simplebulkfilerenamer
cargo install --path .
```
## Usage
**Interactive mode (no arguments):** Run `nbir` with no args. It will ask “Do you want to run it in the current directory? (y/n)” and, if yes, “Enter base name (e.g., spacewallpaper)”. Then it shows a preview and asks to proceed—like the original Python script.
**CLI mode:** Pass `--base-name` (and optionally `-d`, `-y`):
```bash
nbir [OPTIONS] [--base-name <NAME>]
```
### Options
| `-b` | `--base-name` | — | Base name for renamed files. If omitted, runs interactively and prompts for it. |
| `-d` | `--directory` | `.` | Directory containing images |
| `-y` | `--yes` | `false` | Skip confirmation; rename immediately |
### Examples
Interactive (prompts for directory and base name):
```bash
nbir
```
Preview renames in the current directory (will ask for confirmation):
```bash
nbir -b vacation
```
Rename immediately without prompting:
```bash
nbir -b vacation -y
```
Target a specific folder:
```bash
nbir -b thumbs -d ~/Pictures/screenshots
```
## Supported formats
`.jpg`, `.jpeg`, `.png`, `.gif`, `.webp`, `.bmp`, `.tiff`, `.tif` (case-insensitive)