mirror of
https://github.com/tw93/Mole.git
synced 2026-02-12 20:25:13 +00:00
refactor: standardize CLI with 'mo' alias and lowercase flags
Addresses tw93's PR #305 feedback: - Add 'mo' short alias (mo.cmd) alongside mole.cmd - Use 'mo' in all help text and documentation - Document lowercase flag style (--dry-run, --help, etc.) - Simplify optimize: repairs run automatically, no extra flags - Fix RepairsApplied counter bug in optimize.ps1 - Update README with standardized examples
This commit is contained in:
@@ -318,6 +318,11 @@ powershell.exe -ExecutionPolicy Bypass -NoLogo -NoProfile -Command "& '%MOLE_DIR
|
||||
$batchPath = Join-Path $InstallDir "mole.cmd"
|
||||
Set-Content -Path $batchPath -Value $batchContent -Encoding ASCII
|
||||
Write-Success "Created launcher: mole.cmd"
|
||||
|
||||
# Also create 'mo' alias
|
||||
$moPath = Join-Path $InstallDir "mo.cmd"
|
||||
Set-Content -Path $moPath -Value $batchContent -Encoding ASCII
|
||||
Write-Success "Created launcher: mo.cmd (short alias)"
|
||||
|
||||
# Add to PATH if requested
|
||||
if ($AddToPath) {
|
||||
@@ -339,7 +344,7 @@ powershell.exe -ExecutionPolicy Bypass -NoLogo -NoProfile -Command "& '%MOLE_DIR
|
||||
Write-Host ""
|
||||
|
||||
if ($AddToPath) {
|
||||
Write-Host " Run 'mole' from any terminal to start"
|
||||
Write-Host " Run 'mo' or 'mole' from any terminal to start"
|
||||
}
|
||||
else {
|
||||
Write-Host " Run the following to start:"
|
||||
|
||||
Reference in New Issue
Block a user