Mole icon indicating copy to clipboard operation
Mole copied to clipboard

[BUG] `mo purge --dry-run` returns "Unknown option" despite being documented in README

Open anirudhvee opened this issue 9 months ago • 5 comments

Describe the bug

mo purge --dry-run is listed in the README as a valid command but returns Unknown option: --dry-run. The --help output for purge doesn't list --dry-run as a supported flag either.

mo clean --dry-run works correctly, so this is inconsistent.

Steps to reproduce

  1. Run command: mo purge --dry-run
  2. Output:
    First run: discovering project directories...
    Found 11 project directories, saved to config
    Unknown option: --dry-run
    Use 'mo purge --help' for usage information
    
  3. Run mo purge --help to see that --dry-run is not listed:
    Mole Purge, Clean old project build artifacts
    Usage: mo purge [options]
    Options:
      --paths         Edit custom scan directories
      --debug         Enable debug logging
      --help          Show this help message
    

Expected behavior

mo purge --dry-run should preview artifacts to be cleaned without deleting, matching the behavior documented in the README and consistent with mo clean --dry-run.

Debug logs

Debug output
anirudhvee@Anirudh-MacBook-Pro ~ % mo purge --dry-run --debug
[DEBUG] Debug logging enabled. Session log: /Users/anirudhvee/.config/mole/mole_debug_session.log
Unknown option: --dry-run
Use 'mo purge --help' for usage information

Environment

Mole version 1.28.1
macOS: 26.3
Architecture: arm64
Kernel: 25.3.0
SIP: Enabled
Disk Free: 77Gi
Install: Homebrew
Shell: /bin/zsh

Additional context

mo purge --dry-run is documented as a valid command in the README (as of commit 27a2cc5): https://github.com/tw93/Mole/blob/27a2cc592784e8d77a0b2c541374b7ebc92463a0/README.md?plain=1#L67

anirudhvee avatar Mar 02 '26 04:03 anirudhvee

I am not seeing that, although I must add I don't have anything to purge

this is the output with the latest nightly

Image

Version

Mole version 1.28.1
Channel: Nightly
macOS: 15.7.4
Architecture: arm64
Kernel: 24.6.0
SIP: Enabled
Disk Free: 401Gi
Install: Manual
Shell: /bin/zsh

It could be that your version doesn't have it yet as the official build hasn't been released yet

ghost avatar Mar 02 '26 05:03 ghost

@tw93

Maybe an idea to add a - only available in nightly comment in the readme for certain functions when they are not available in the official version yet

ghost avatar Mar 02 '26 05:03 ghost

@iammike4 It's okay. Just wait for the release. This is the transition stage.

@anirudhvee This code is already on main, but it hasn’t been released yet. If you need to use it, you can use the nightly version.

tw93 avatar Mar 02 '26 06:03 tw93

@tw93

I fully understand your POV, but by adding "a nightly option only for the moment" you will get less support questions like this, and especially from users not using Nightly

ghost avatar Mar 02 '26 06:03 ghost

@anirudhvee This code is already on main, but it hasn’t been released yet. If you need to use it, you can use the nightly version.

@tw93 Oh, that makes sense, thank you for letting me know. I have been enjoying using Mole, great work!

anirudhvee avatar Mar 02 '26 06:03 anirudhvee