Comments (5)
Michael, I'll ask @tedsuo to help with this.
from cli.
Hi @fraenkel,
You can see the story in the CLI public backlog here.
from cli.
I have a pull request ready for codegangsta to see if he will add an IsSet method. scottruitt --- Re: [cli] No way to specify optional flags (#38) --- From:"scottruitt" [email protected]"cloudfoundry/cli" [email protected]"Michael Fraenkel" [email protected]:Wed, Dec 18, 2013 10:32 AMSubjectRe: [cli] No way to specify optional flags (#38)Michael, I'll ask @tedsuo to help with this.
βReply to this email directly or view it on GitHub.
from cli.
@fraenkel so we just hit this issue as well. Our solution was to change the flag type from int to string, so that we can differentiate between not set (empty string) and "0".
see the commit for an example: 03e790b
Hope your pull request goes through with codegansta, it would be a good feature.
from cli.
Yea, that doesn't work for me since I have a Bool I can't use String since -enabled won't be handled properly. I was also hoping that I could play another trick and use String but have the parse treat it as a Bool with the magic IsBoolFlag, but they first type assert to boolValue which stops me dead in my tracks.
As an aside, there are a few other cases that need the Int -> String trick above, e.g., Buildpack position.
from cli.
Related Issues (20)
- Typo in the V8 CLI Installation Guide wiki HOT 1
- Display service offerings metadata
- cf cli slow in large space due to page size of 50 when calling CF API
- 'cf a' should print out available information even if an app process was not found HOT 1
- service key as true JSON
- Publish json schema for cf manifest as to enable IDE coding assist features (completion, syntax validation, inline doc) HOT 1
- Update the cli libraries HOT 1
- Using `cf create-service` with v8 CLI does not consider current targeted space HOT 2
- Output CPU Entitlement metrics rather than the old CPU metric HOT 14
- cf restart [APP] --strategy rolling - getting timeout in spite CF_STARTUP_TIMEOUT env variable set to 15 minutes HOT 2
- `{{` in App Environment Variable values break the `cf env` command HOT 2
- CLI V8 fails to install with the official installation method for Debian and Fedora HOT 13
- CLI V8 fails to install on debian with official installation method HOT 1
- "--wait" option doesn't take effective when "cf update-service"
- More-inclusive name for command HOT 1
- parallel invocation of cf oauth-token sporadically leads to io errors HOT 2
- Getting Certitificate Error While installing the cf cli using azure Market Place HOT 1
- Expired Certitificate Azure Pipeline HOT 2
- We are facing issue in Azure DevOps release pipeline in a pne of the task to install cloud Foundry CLI
- update-space-quota does not fail if quota cannot be changed
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 cli.