Comments (4)
I checked three command-line parsing header-only libraries.
All three come with the same caveat: There is no way to simulate Boost's multitoken() feature, which allows us to write
anderson.pomerol --levels 1.0 2.0 --hoppings 3.0 4.0
With those libraries, it has to be either
anderson.pomerol --levels 1.0,2.0 --hoppings 3.0,4.0
or
anderson.pomerol --levels "1.0 2.0" --hoppings "3.0 4.0"
@aeantipov How much of a problem do you think this change of the command line format would be?
from pomerol.
I think it's fine or actually it's even better when we need to provide arguments via a comma.
cxxopts support std::vector arguments, so something like that would work.
from pomerol.
cxxopts looked like a perfect choice as its API is very similar to that of boost::program_options. So I tried it and got disappointed.
- For some reason, dots are disallowed in option names, and we do need them (
gf.eta
,gf.step
, etc). - An option with a single-character name (for instance,
--U
) is always assumed to be a short option and has to be used as-U
(jarro2783/cxxopts#249). - Not really a problem, but a rather strange decision to define default values in their unparsed form, i.e. as strings.
I have some positive experience using args and will try it next, but it will require some redesign of the programs.
from pomerol.
Fixed by #40.
from pomerol.
Related Issues (20)
- Error while compiling tutorial files HOT 3
- Extend Symmetrizer to support arbitrary integrals of motion HOT 10
- Computing two-particle GF in imaginary time HOT 2
- Disabling MPI in computing two-particle Green's function HOT 3
- Failing Build HOT 3
- Susceptibility HOT 10
- ZeroPoleWeight is not necessarily real HOT 3
- Problem linking boost_mpi and boost_serialization HOT 5
- Problem with exported pomerol::pomerol target on MacOS HOT 7
- Code formatting checker HOT 1
- Deprecate gtest? HOT 1
- Employ libcommute to define Hamiltonians HOT 2
- Use libcommute to find Hamiltonian blocks HOT 1
- Deprecate POMEROL_COMPLEX_MATRIX_ELEMENTS ? HOT 1
- Move away from travis to github actions? HOT 3
- Non-zero imaginary part in the latest release HOT 1
- Tutorial example gives zero-valued TwoParticleGF? HOT 2
- MPI Freeze HOT 1
- Worker didn't calculate this part.
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 pomerol.