GithubHelp home page GithubHelp logo

mirror / tclap Goto Github PK

View Code? Open in Web Editor NEW
80.0 6.0 42.0 1 MB

Templatized C++ Command Line Parser mirror

Home Page: http://tclap.sourceforge.net/

License: MIT License

Shell 18.60% C++ 74.55% Perl 0.14% Makefile 2.00% M4 2.40% Python 2.24% CMake 0.08%

tclap's People

Contributors

daarno avatar mes5k avatar stefanbuettner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

tclap's Issues

Error en termux

clang version 16.0.3
Target: aarch64-unknown-linux-android24
Thread model: posix
InstalledDir: /data/data/com.termux/files/usr/bin
make -v                                        
$    GNU Make 4.4.1
Built for aarch64-unknown-linux-android
Copyright (C) 1988-2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

1 ) git clone https://github.com/mirror/tclap.git
2) cd tclab
3) ./config.status
4)./configure --prefix=$PREFIX
5) make

Salida de make

Making all in include
make[1]: Entering directory '/data/data/com.termux/files/home/below_zero/tclap/include'
Making all in tclap
make[2]: Entering directory '/data/data/com.termux/files/home/below_zero/tclap/include/tclap'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/data/data/com.termux/files/home/below_zero/tclap/include/tclap'
make[2]: Entering directory '/data/data/com.termux/files/home/below_zero/tclap/include'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/data/data/com.termux/files/home/below_zero/tclap/include'
make[1]: Leaving directory '/data/data/com.termux/files/home/below_zero/tclap/include'
Making all in examples
make[1]: Entering directory '/data/data/com.termux/files/home/below_zero/tclap/examples'
g++ -DHAVE_CONFIG_H -I. -I../config  -I../include  -Wall -Wextra -g -O2 -Weffc++ -MT test30.o -MD -MP -MF .deps/test30.Tpo -c -o test30.o test30.cpp
In file included from test30.cpp:6:
In file included from ../include/tclap/CmdLine.h:27:
In file included from ../include/tclap/SwitchArg.h:32:
../include/tclap/Arg.h:417:9: error: call to function 'operator>>' that is neither visible in the template definition nor found by argument-dependent lookup
            is >> destVal;
               ^
../include/tclap/ValueArg.h:408:5: note: in instantiation of function template specialization 'TCLAP::ExtractValue<std::pair<int, double>>' requested here
    ExtractValue(_value, val, typename ArgTraits<T>::ValueCategory());
    ^
../include/tclap/ValueArg.h:368:13: note: in instantiation of member function 'TCLAP::ValueArg<std::pair<int, double>>::_extractValue' requested here
            _extractValue( args[*i] );
            ^
test30.cpp:26:37: note: in instantiation of member function 'TCLAP::ValueArg<std::pair<int, double>>::processArg' requested here
  ValueArg<std::pair<int, double> > parg("p", "pair", "int,double pair",
                                    ^
test30.cpp:14:15: note: 'operator>>' should be declared prior to the call site
std::istream &operator>>(std::istream &is, std::pair<int, double> &p) {
              ^
1 error generated.
make[1]: *** [Makefile:622: test30.o] Error 1
make[1]: Leaving directory '/data/data/com.termux/files/home/below_zero/tclap/examples'
make: *** [Makefile:404: all-recursive] Error 1

Feature request: Allow disabling short flag and force long flag

The documentation for ValueArg states

You could conceivably call this constructor with a blank flag, but that would make you a bad person. It would also cause an exception to be thrown. If you want an unlabeled argument, use the other constructor.

However, no such constructor exists. Often, short flags do not make sense, so it would be very cool to have a way of disabling them.

Tclap does not compile with g++-11

The new g++-11 (v11.1) fails to compile tclap 1.2 and even 1.4 in C++20 mode due to, I guess, an incorrect syntax used to prevent accidental copying of ValueArg, MultiArg. The syntax should be:

MultiArg(const MultiArg<T>& rhs); MultiArg& operator=(const MultiArg<T>& rhs);
Alternatively, these could be set to delete with C++11's syntax.

https://godbolt.org/z/94rv41aPe

If this is a mirror, why the checksum is not the same from source forge?

Hi! I was expecting to use this repository as a mirror from https://tclap.sourceforge.net/, but it seems like it is not a mirror, because the package files have different checksum.

wget https://sourceforge.net/projects/tclap/files/tclap-1.2.5.tar.gz
sha256sum tclap-1.2.5.tar.gz 
bb649f76dae35e8d0dcba4b52acfd4e062d787e6a81b43f7a4b01275153165a6  tclap-1.2.5.tar.gz
wget https://github.com/mirror/tclap/archive/refs/tags/v1.2.5.tar.gz 
sha256sum v1.2.5.tar.gz 
7e87d13734076fa4f626f6144ce9a02717198b3f054341a6886e2107b048b235  v1.2.5.tar.gz

As you can see, the SHA-256 is different from the original. Is there any reason for having this mismatch?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.