Skip to content

Commit

Permalink
chore: update fetchver usage
Browse files Browse the repository at this point in the history
  • Loading branch information
emako committed Dec 4, 2024
1 parent bbab09a commit a7b1cd2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,17 @@ MicaSetup is a universal advanced installation package generation tool project t

🚧Under construction🚧

### Usage of `fetchver`

```bash
@echo off
for /f "tokens=* delims=" %%i in ('fetchver.exe /v3 "fetchver.exe"') do set fetchver=%%i
@echo The result is: %fetchver%
@pause
```
Support options: v1, v2, v3
## 🎃Developer
### ⚙️Debug Codes
Expand Down
1 change: 1 addition & 0 deletions build/MicaSetup.Tools/FetchVer/CommandLine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ public static (string, string?, string?) GetPaths(string[] args)
fieldCount = args.Any(arg => arg.Equals("/v1")) ? 1 : fieldCount;
fieldCount = args.Any(arg => arg.Equals("/v2")) ? 2 : fieldCount;
fieldCount = args.Any(arg => arg.Equals("/v3")) ? 3 : fieldCount;
fieldCount = args.Any(arg => arg.Equals("/v4")) ? null : fieldCount;
return fieldCount;
}
}

0 comments on commit a7b1cd2

Please sign in to comment.