docs: update documentation for custom path support

- Add PATH argument to command-line options tables
- Add Custom Path Organization section with examples
- Update basic usage examples to include path usage
- Add combined options examples with custom paths
- Add Custom Path Support section to README
- Document path validation, normalization, and use cases

Documentation now fully covers the new custom path functionality
with clear examples and explanations.
This commit is contained in:
glitchySid
2026-01-07 22:22:18 +05:30
parent 3aa82d3f90
commit 6ed5e80d0a
2 changed files with 104 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ NoEntropy supports several command-line flags to customize its behavior:
| Option | Short | Default | Description |
|--------|-------|---------|-------------|
| `[PATH]` | - | - | Path to organize (defaults to configured download folder) |
| `--dry-run` | `-d` | `false` | Preview changes without moving files |
| `--max-concurrent` | `-m` | `5` | Maximum concurrent API requests |
| `--recursive` | - | `false` | Recursively search files in subdirectories |
@@ -32,6 +33,35 @@ NoEntropy supports several command-line flags to customize its behavior:
## Usage Examples
### Custom Path Organization
Organize any directory instead of the configured download folder:
```bash
./noentropy /path/to/folder
```
**Usage with current directory:**
```bash
./noentropy .
```
**Usage with relative path:**
```bash
./noentropy ./subfolder
```
**When to use:**
- Organize directories other than your Downloads folder
- Quickly organize the current working directory
- Test organization on specific folders before applying to Downloads
- Organize project directories, documents, or other file collections
**Features:**
- Path validation ensures the directory exists and is accessible
- Path normalization resolves `.`, `..`, and symlinks for consistency
- Works with all other options (`--dry-run`, `--recursive`, etc.)
### Dry-Run Mode
Preview what NoEntropy would do without actually moving any files:
@@ -102,6 +132,28 @@ You can combine multiple options:
./noentropy --recursive --max-concurrent 10
```
**Custom path combinations:**
```bash
# Preview organization of current directory
./noentropy . --dry-run
```
```bash
# Organize specific folder recursively
./noentropy /path/to/folder --recursive
```
```bash
# Organize current directory with custom concurrency
./noentropy . --max-concurrent 10
```
```bash
# Undo organization in specific directory
./noentropy /path/to/folder --undo
```
## Undo Operations
NoEntropy tracks all file moves and allows you to undo them.