Skip to content

Commit 5fce9a8

Browse files
authored
Merge pull request #34 from xt0rted/verbose-option
Add `-v` alias to enable verbose output
2 parents ba1a5b0 + 18ed5b4 commit 5fce9a8

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ jobs:
132132
133133
- run: |
134134
if [ "${{ matrix.shell }}" == "default" ]; then
135-
dotnet r build --verbose
135+
dotnet r build -v
136136
else
137-
dotnet r build --verbose --script-shell "${{ matrix.shell }}"
137+
dotnet r build -v --script-shell "${{ matrix.shell }}"
138138
fi
139139
shell: bash
140140

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- added: Force color output with the `DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION` environment variable.
66
- Note: this tool with output color on all platforms including when output is redirected, but the dotnet cli only supports this on Unix platforms currently. This means script results might not be colored in places like GitHub Actions build logs when using the Windows VMs.
7+
- added: Added `-v` alias to enable verbose output.
78
- fixed: Escape arguments for non-cmd shells
89
- fixed: Quote additional arguments passed after `--`
910
- fixed: Escape scripts with `^` passed to `cmd.exe`

src/GlobalOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ public static class GlobalOptions
1111
ArgumentHelpName = "shell",
1212
};
1313

14-
public static readonly Option<bool> Verbose = new("--verbose", "Enable verbose output");
14+
public static readonly Option<bool> Verbose = new(new[] { "-v", "--verbose" }, "Enable verbose output");
1515
}

0 commit comments

Comments
 (0)