Skip to content

Commit 58ff70d

Browse files
committed
fix markdown linter errors, add redirects
1 parent 8bbb74a commit 58ff70d

8 files changed

+30
-5
lines changed

.openpublishing.redirection.fundamentals.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,30 @@
168168
"source_path_from_root": "/docs/fundamentals/networking/httpclient.md",
169169
"redirect_url": "/dotnet/fundamentals/networking/http/httpclient"
170170
},
171+
{
172+
"source_path_from_root": "/docs/standard/commandline/customize-help.md",
173+
"redirect_url": "/docs/standard/commandline/help"
174+
},
175+
{
176+
"source_path_from_root": "/docs/standard/commandline/define-commands.md",
177+
"redirect_url": "/docs/standard/commandline/syntax#commands"
178+
},
179+
{
180+
"source_path_from_root": "/docs/standard/commandline/dependency-injection.md",
181+
"redirect_url": "/docs/standard/commandline/beta5#invocation"
182+
},
183+
{
184+
"source_path_from_root": "/docs/standard/commandline/handle-termination.md",
185+
"redirect_url": "/docs/standard/commandline/parse-and-invoke#process-termination-timeout"
186+
},
187+
{
188+
"source_path_from_root": "/docs/standard/commandline/model-binding.md",
189+
"redirect_url": "/docs/standard/commandline/parse-and-invoke"
190+
},
191+
{
192+
"source_path_from_root": "/docs/standard/commandline/use-middleware.md",
193+
"redirect_url": "/docs/standard/commandline/beta5#configuration"
194+
},
171195
{
172196
"source_path_from_root": "/docs/fundamentals/networking/httpclient-guidelines.md",
173197
"redirect_url": "/dotnet/fundamentals/networking/http/httpclient-guidelines"

docs/standard/commandline/beta5.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ if (result.Action is ParseErrorAction parseError)
178178
parseError.ShowHelp = false;
179179
}
180180
```
181+
181182
- `UseLocalizationResources` and `LocalizationResources` were removed. This feature was used mostly by the `dotnet` CLI to add missing translations to `System.CommandLine`. All those translations were moved to the System.CommandLine itself, so this feature is no longer needed. If we are missing support for your language, please [report an issue](https://github.com/dotnet/command-line-api/issues/new/choose).
182183
- `UseTokenReplacer` was removed. [Response files](syntax.md#response-files) are enabled by default, but you can disable them by setting the <xref:System.CommandLine.CommandLineConfiguration.ResponseFileTokenReplacer> property to `null`. You can also provide a custom implementation to customize how response files are processed.
183184

docs/standard/commandline/command-line-configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Now, let's use `CommandLineConfiguration` to capture the output:
3232

3333
## EnablePosixBundling
3434

35-
[Bundling](syntax.md#bundling-options) of single-character options is enabled by default, but you can disable it by setting the <xref:System.CommandLine.CommandLineConfiguration.EnablePosixBundling> property to `false`.
35+
[Bundling](syntax.md#option-bundling) of single-character options is enabled by default, but you can disable it by setting the <xref:System.CommandLine.CommandLineConfiguration.EnablePosixBundling> property to `false`.
3636

3737
## ProcessTerminationTimeout
3838

docs/standard/commandline/design-guidance.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ In the .NET CLI, some Boolean options result in the same behavior when you pass
161161

162162
In some cases, the .NET CLI doesn't use kebab case for command, option, or argument names. For example, there is a .NET CLI option that is named [`--additionalprobingpath`](../../core/tools/dotnet.md#additionalprobingpath) instead of `--additional-probing-path`.
163163

164-
165164
## See also
166165

167166
* [Open-source CLI design guidance](https://clig.dev/)

docs/standard/commandline/get-started-tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Create a .NET 9 console app project named "scl".
7373

7474
The preceding code:
7575

76-
* Creates an [option](syntax.md#options) named `--file` of type <xref:System.IO.FileInfo> and adds it to the [root command](syntax.md#root-commands):
76+
* Creates an [option](syntax.md#options) named `--file` of type <xref:System.IO.FileInfo> and adds it to the [root command](syntax.md#root-command):
7777

7878
:::code language="csharp" source="snippets/get-started-tutorial/csharp/Stage1/Program.cs" id="symbols" :::
7979

docs/standard/commandline/parse-and-invoke.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ In the following example from our [Get started with System.CommandLine](get-star
1919

2020
:::code language="csharp" source="snippets/get-started-tutorial/csharp/Stage0/Program.cs" id="all" :::
2121

22-
An action is invoked when a given command (or directive, or option) is parsed successfully. The action is a delegate that takes a <xref:System.CommandLine.ParseResult> parameter and returns an `int` exit code (async actions are also [available](#async)). The exit code is returned by the <xref:System.CommandLine.Parsing.ParseResult.Invoke> method and can be used to indicate whether the command was executed successfully or not.
22+
An action is invoked when a given command (or directive, or option) is parsed successfully. The action is a delegate that takes a <xref:System.CommandLine.ParseResult> parameter and returns an `int` exit code (async actions are also [available](#asynchronous-actions))). The exit code is returned by the <xref:System.CommandLine.Parsing.ParseResult.Invoke> method and can be used to indicate whether the command was executed successfully or not.
2323

2424
In the following example from our [Get started with System.CommandLine](get-started-tutorial.md) tutorial, the action is defined for the root command and invoked after parsing the command-line input:
2525

docs/standard/commandline/parsing-and-validation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ To provide custom validation code, call <xref:System.CommandLine.Option.Validato
4343
:::code language="csharp" source="snippets/model-binding/csharp/AddValidator.cs" id="delayOption" :::
4444

4545
System.CommandLine provides a set of built-in validators that can be used to validate common types:
46+
4647
- `AcceptExistingOnly` - configures given option or argument to accept only values corresponding to an existing file or directory.
4748
- `AcceptLegalFileNamesOnly` - configures given option or argument to accept only values representing legal file names.
4849
- `AcceptOnlyFromAmong` - configures given option or argument to accept only values from a specified set of values.

docs/standard/commandline/syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ A directive can include an argument, separated from the directive name by a colo
438438
The following directives are built in:
439439

440440
* [`[diagram]`](#the-diagram-directive)
441-
* [`[suggest]`](#the-suggest-directive)
441+
* [`[suggest]`](#suggest-directive)
442442

443443
### The `[diagram]` directive
444444

0 commit comments

Comments
 (0)