Command line support ripped from vert.x-core, also port the code (base on git hash 17ecf4c) to enable it run on both java6 and java7. Pls. refer to official document for more information.
cli's Introduction
cli's People
Forkers
gangzi828 smallzh liweiyuan jordan-zhao qxo zhaojingchun wulin-challenge xiaoxiao-jar shaoyuan-zwh zhaody ajunlonglive roboslyq viyond yanyir liuhongze19920301cli's Issues
AutoScaling error in cli
aliyun ess CreateScalingGroup --MaxSize 3 --MinSize 1 --RegionId ap-south-1 --DefaultCooldown 300 --LaunchTemplateId lt-a2d24m7ffqaqcedss6sx --LaunchTemplateVersion Latest --MultiAZPolicy BALANCE --RemovalPolicy.1 OldestInstance --RemovalPolicy.2 OldestInstance --ScalingGroupName MyTestAutoScalingcli --VSwitchIds.n [vsw-a2dmdn70pq3byg4c3wlm5,vsw-a2ds2k3ji5vb1bsgfkigg]
ERROR: SDK.ServerError
ErrorCode: ResourceNotAvailable.ClassicNetwork
Recommend:
RequestId: 5FEA567A-4915-42CE-9F35-9550B5B9D323
Message: The specified region does not support classic network, or you are the default vpc user.
I am getting the above error when trying through aliyun cli. What modification should i perform.
vert.x
使用Option 设置boolean值时,acceptValue 不生效
这个配置
Option(longName = "acceptValueBoolean", flag = true, acceptValue = true)
应该是允许设置 --acceptValueBoolean=false
这样子的形式的,但是实际上跑时,会抛出异常:
Exception in thread "main" com.taobao.middleware.cli.InvalidValueException: The value 'false' is not accepted by 'acceptValueBoolean'
at com.taobao.middleware.cli.impl.DefaultParser.handleLongOptionWithEqual(DefaultParser.java:392)
at com.taobao.middleware.cli.impl.DefaultParser.handleLongOption(DefaultParser.java:337)
at com.taobao.middleware.cli.impl.DefaultParser.visit(DefaultParser.java:235)
at com.taobao.middleware.cli.impl.DefaultParser.parse(DefaultParser.java:133)
at com.taobao.middleware.cli.impl.DefaultCLI.parse(DefaultCLI.java:70)
at com.taobao.arthas.core.shell.command.internal.GrepHandler.main(GrepHandler.java:129)
原因是 .setFlag(option.flag())
的实现里会设置 SingleValued
值 。
所以要把 .setSingleValued(option.acceptValue())
放在后面。
support case sensitive option
Currently, If the user has two options like:
@Option(shortName = "e", longName = "exception", flag = true)
@Description("Watch after throw exception")
public void setException(boolean exception) {
isException = exception;
}
@Option(shortName = "E", longName = "regex", flag = true)
@Description("Enable regular expression to match (wildcard matching by default)")
public void setRegEx(boolean regEx) {
isRegEx = regEx;
}
No matter -e
/-E
, only isException
is true.
请问这个项目是做什么的,有相关介绍吗?
如题,能介绍下这个项目是做什么的吗,解决什么问题,具体怎么使用的?
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.