Comments (3)
@elgonzo, there's the CliOption.Action property. It was added in #2095 as Option.Action, largely intended for --help
and --version
.
from command-line-api.
To my knowledge, Options in System.CommandLine do not feature actions. Actions (or handlers, as they were called in older System.CommandLine versions) are features of commands. Could you please clarify what exactly you mean by saying "options can have also own actions"?
(Side note: In case you aren't already aware, please consider reading this announcement: #2338 and issue threads following this announcement.)
from command-line-api.
@KalleOlaviNiemitalo thanks for the clarification!
from command-line-api.
Related Issues (20)
- Replace `ParseError`/string errors with `Error` and use generally HOT 7
- Create error reporting output HOT 1
- [Proposal] Validation
- Some naming and organizational issues
- [Proposal] Diagramming
- [Proposal] Remove `TreatUnmatchedTokensAsErrors` HOT 7
- HostingAction wrapper does not honor Terminating flag of original action
- [Proposal] Remove global options in Powderhouse parser HOT 3
- [Proposal] Unifying public parts of ArgumentResult and OptionResult to ValueResult and isolating parser support HOT 2
- [Proposal] ValueSubsystem - default values HOT 1
- BinderBase functionality replacement HOT 1
- Required command was not provided on `RootCommand` HOT 6
- [Proposal] Values API HOT 1
- EnvironmentDirective has a hard-coded call to Environment.SetEnvironmentVariable making it hard to test
- Breaking changes for Powderhouse
- Usage root command does not display `ToolCommandName` HOT 1
- [Breaking] Remove CommandResult HOT 6
- Powderhouse support for .NET versions
- Tracking issue for Error changes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from command-line-api.