Comments (5)
原来实现的比较简单。一直也没时间进一步优化改进 :)
有兴趣可以参与改进下
from gcli.
@inhere Command Cli时好像无法正确解析bool
类型
from gcli.
这是参照 go flag 的逻辑处理的。
bool 值一般不会主动通过输入设置false,因为默认就是false。
要设置只能 -f=false
。 go flag 底层没改的话应该也是这样的
from gcli.
@inhere 也试过 go flag方式init -f=false vue-test
会提示错误
ERROR: option error - bad flag syntax: -=
from gcli.
👍 哦 看到调试信息,好像知道哪里错误了
from gcli.
Related Issues (14)
- clone
- when setting default command to gcli app, ./appcli can't run with default command HOT 1
- TODO: support middleware on execute command
- TODO: support sub-commands HOT 1
- module path error HOT 1
- 如何实现参数的继承 HOT 1
- How to disable the global options? HOT 7
- 缺少import模块 HOT 2
- -h 无法自动输出帮助信息 HOT 4
- Command Cli时好像无法正确解析`bool`类型
- TODO: 通过结构体绑定选项参数
- gflag.AlignLeft 赋值给 gflag.Config.Alignment 出现类型转换错误 HOT 1
- 命令格式定义建议 HOT 2
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 gcli.