mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
Update readme
This commit is contained in:
@@ -212,7 +212,7 @@ OPTIONS
|
|||||||
Overall, parameters and options are both used to consume input from the command line, but they differ in a few important ways:
|
Overall, parameters and options are both used to consume input from the command line, but they differ in a few important ways:
|
||||||
|
|
||||||
| | Parameter | Option |
|
| | Parameter | Option |
|
||||||
|--------------------|--------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------|
|
| ------------------ | ------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------- |
|
||||||
| **Identification** | Positional (by relative order). | Nominal (by name or short name). |
|
| **Identification** | Positional (by relative order). | Nominal (by name or short name). |
|
||||||
| **Requiredness** | Required by default. Only the last parameter can be configured to be optional. | Optional by default. Any option can be configured to be required without limitations. |
|
| **Requiredness** | Required by default. Only the last parameter can be configured to be optional. | Optional by default. Any option can be configured to be required without limitations. |
|
||||||
| **Arity** | Only the last parameter can be bound to a non-scalar property (i.e. an array). | Any option can be bound to a non-scalar property without limitations. |
|
| **Arity** | Only the last parameter can be bound to a non-scalar property (i.e. an array). | Any option can be bound to a non-scalar property without limitations. |
|
||||||
@@ -567,8 +567,8 @@ public class CancellableCommand : ICommand
|
|||||||
```
|
```
|
||||||
|
|
||||||
> **Warning**:
|
> **Warning**:
|
||||||
> Forceful termination of a command can only be delayed once.
|
> Cancellation handler is only respected when the user sends the interrupt signal for the first time.
|
||||||
> If the user issues a second interrupt signal, the process will be killed immediately, without waiting for graceful cancellation.
|
> If the user decides to issue the signal again, the application will terminate immediately regardless of whether the command is cancellation-aware.
|
||||||
|
|
||||||
### Type activation
|
### Type activation
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user