You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A common design is to show help information if no commands have been passed:
626
637
@@ -649,11 +660,12 @@ let main argv =
649
660
}
650
661
```
651
662
652
-
## Command Line Configuration
663
+
## Configuration
653
664
654
-
System.CommandLine has a `CommandLineConfiguration` that allows the user to customize various behaviors.
665
+
System.CommandLine (>= v2 beta7) has `ParserConfiguration` and `InvocationConfiguration` to allow the user to customize various behaviors.
655
666
656
-
FSharp.SystemCommandLine uses the defaults from `CommandLineConfiguration`, but you can override them via the `configure` custom operation which gives you access to the `CommandLineConfiguration`.
667
+
* FSharp.SystemCommandLine `configureParser` gives you access to the underlying `ParserConfiguration`.
668
+
* FSharp.SystemCommandLine `configureInvocation` gives you access to the underlying `InvocationConfiguration`. NOTE: This operation is not available on the `ManualInvocation.rootCommand`..
657
669
658
670
For example, the default behavior intercepts input strings that start with a "@" character via the "TryReplaceToken" feature. This will cause an issue if you need to accept input that starts with "@". Fortunately, you can disable this via `usePipeline`:
659
671
@@ -681,10 +693,13 @@ let main argv =
681
693
682
694
rootCommand argv {
683
695
description "Can be called with a leading '@' package"
684
-
configure (fun cfg ->
696
+
configureParser (fun cfg ->
685
697
// Override default token replacer to ignore `@` processing
0 commit comments