Skip to content

v0.3.0

Choose a tag to compare

@benface benface released this 06 Oct 13:59
· 15 commits to main since this release
a82405c

🎉 Optional Output Argument

This release makes the output argument optional, simplifying the most common usage pattern!

✨ New Features

  • Auto-generated output filenames: Simply run bgone input.png and get input-bgone.png
  • Smart incremental naming: Automatically appends -bgone-1, -bgone-2, etc. when files exist
  • Preserves file extensions: Works with .jpg, .png, or any format
  • Fully backwards compatible: Explicit output paths still work as before

📖 Usage Examples

# Before: had to specify output
bgone input.png output.png --fg auto

# Now: output is optional!
bgone input.png --fg auto

# Still works with explicit output
bgone input.png custom-name.png --fg auto

🧪 Quality Improvements

  • Added 7 comprehensive unit tests for output path generation
  • All existing tests pass (77 tests total)
  • Full test coverage for edge cases and incremental naming

🔧 Implementation Details

  • Extension preservation and fallback to .png
  • Automatic collision detection and resolution
  • Supports up to 999 incremental files before erroring

This makes bgone even easier to use while maintaining all its powerful features!