Comments (10)
first part
CLI is an issue. I did not find anything suitable for my needs yet.
I even tried to investigate it myself. See https://github.com/egorpugin/primitives/tree/master/src/experimental/cl
Current implementation is from clang. It allows -single-dash long options.
It may be reconsidered later.
Windows convention
It is /option1 /option2 :)
Currently we have a mix of unix/clang cli interface.
second part
about your points
Because I did not accept final CLI options implementation or library, there will be such mess like now.
I'd argue it is better to promote it to a command: sw list-programs.
I'm against it. Command list MUST be populated rarely and not for small commands like this.
Better to leave it -like-single-option for now.
from sw.
I'm against it. Command list MUST be populated rarely and not for small commands like this.
Better to leave it -like-single-option for now.
I disagree from an user experience point of view, it seems odd to use an option without a command while others will print No command was issued
.
Perhaps there could be a compromise like sw list compilers
adding only one list
command capable of listing different things depending on its subcommand.
PS: I just noticed that it is list-programs
instead of list-compilers
which would be clearer since the option is -compiler
from sw.
list-compilers
is too specific. I've left 'list-programs' for some space.
from sw.
sw list ...
is in use for packages.
from sw.
I disagree from an user experience point of view, it seems odd to use an option without a command while others will print No command was issued.
it's like sw -help
. :)
from sw.
list-compilers
is too specific. I've left 'list-programs' for some space.
It's because the option is then called -compiler
. There doesn't seem to be an obvious link between -list-programs
and -compiler
even though they are closely related.
sw list ...
is in use for packages.
My bad but it was just an example.
I disagree from an user experience point of view, it seems odd to use an option without a command while others will print No command was issued.
it's like
sw -help
. :)
I guess you've got a point, there. (Even though I find this convention a bit strange but who am I to judge?)
from sw.
One more note here.
From very end sw user POV it may be more convenient to use future sw-gui application.
https://github.com/SoftwareNetwork/sw/tree/master/src/sw/client/gui
from sw.
There's a simple stub there currently. Gui is definitely is not on my plate at the moment.
from sw.
https://github.com/CLIUtils/CLI11
Could be a decent option. Unix-style, no short-long options (like -help
).
I admit --help
is more friendly to me also.
from sw.
Seems like a very nice interface!
I think it's a good fit, I'm already thinking about throwing Boost.program_options in favor of this!
from sw.
Related Issues (20)
- Error compiling for iOS arm64 from macOS arm64 HOT 55
- Exception when executing: sw build org.sw.demo.google.tesseract.tesseract HOT 1
- Can't build podofo HOT 2
- i don't know why, HOT 3
- when I run sw build org.sw.demo.googke.tesseract -trace HOT 1
- Trying to Build tesseract - Errors from SW HOT 13
- SW is needed to build SW, server down HOT 1
- "Cannot find compiler" error in leptonica Windows build HOT 6
- No target resolved: pub.egorpugin.primitives.hash-master HOT 26
- ABSL file not found HOT 2
- swgui for Windows deprecated HOT 2
- Unknown CMake command "sw_add_package". HOT 7
- SSL connect error HOT 1
- windows tesseract build error (the error is on the SW side) HOT 2
- Tesseact 5.3.3 build issue HOT 6
- sw stuck while building tesseract HOT 2
- lua not built when adding sol2 dependency HOT 3
- CMake Error for SW: Non-zero exit code HOT 10
- sw setup failed HOT 2
- Leptonica Build error for dynamic Library HOT 6
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 sw.