mirror of
https://github.com/actions/runner.git
synced 2025-12-10 20:36:49 +00:00
Localize help message to the current platform
This commit is contained in:
@@ -95,7 +95,16 @@ namespace GitHub.Runner.Listener
|
|||||||
var unknownCommandlines = command.Validate();
|
var unknownCommandlines = command.Validate();
|
||||||
if (unknownCommandlines.Count > 0)
|
if (unknownCommandlines.Count > 0)
|
||||||
{
|
{
|
||||||
terminal.WriteError($"Unrecognized command-line input arguments: '{string.Join(", ", unknownCommandlines)}'. For usage refer to: .\\config.cmd --help or ./config.sh --help");
|
string separator;
|
||||||
|
string ext;
|
||||||
|
#if OS_WINDOWS
|
||||||
|
separator = "\\";
|
||||||
|
ext = "cmd";
|
||||||
|
#else
|
||||||
|
separator = "/";
|
||||||
|
ext = "sh";
|
||||||
|
#endif
|
||||||
|
terminal.WriteError($"Unrecognized command-line input arguments: '{string.Join(", ", unknownCommandlines)}'. For usage refer to `.{separator}config.{ext} --help`");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Defer to the Runner class to execute the command.
|
// Defer to the Runner class to execute the command.
|
||||||
|
|||||||
Reference in New Issue
Block a user