Activity for Templatized C++ Command Line Parser

  • Daniel Aarno Daniel Aarno committed [4430e9] on Code

    Include required package-config files in the release

  • Templatized C++ Command Line Parser Templatized C++ Command Line Parser released /tclap-1.4.0-rc2.tar.bz2

  • Templatized C++ Command Line Parser Templatized C++ Command Line Parser updated /README.txt

  • Templatized C++ Command Line Parser Templatized C++ Command Line Parser released /tclap-1.4.0-rc2.tar.bz2

  • Daniel Aarno Daniel Aarno posted a comment on discussion Help

    Thanks Lars, a new release has been cut as 1.4.0-rc2.

  • Lars Bilke Lars Bilke posted a comment on discussion Help

    Dear Daniel, I have created a package tclap for GNU Guix (https://issues.guix.gnu.org/75282) based on the 1.4.0-rc1 tag. But the problem is that the tag does not include this patch for bug 33. I would like to kindly ask you to create a new tag, maybe 1.4.0-rc2? That would be awesome! Thanks a lot! Lars

  • Daniel Aarno Daniel Aarno modified ticket #19

    Fix installation of doc files

  • Daniel Aarno Daniel Aarno posted a comment on ticket #19

    Thanks, patch tested and applied in: https://sourceforge.net/p/tclap/code/ci/81b3d2a0c47895c22e9bb8c577f5ab521f76e5d2/

  • Daniel Aarno Daniel Aarno committed [81b3d2] on Code

    Fix installation of doc files.

  • Daniel Aarno Daniel Aarno modified ticket #19

    Fix installation of doc files

  • Stephan van Veen Stephan van Veen created ticket #19

    Fix installation of doc files

  • Daniel Aarno Daniel Aarno modified ticket #18

    Minor fixes for clang-tidy warnings

  • Daniel Aarno Daniel Aarno committed [61cfae] on Code

    Make virtual functions calls from constructor explicit.

  • Daniel Aarno Daniel Aarno committed [e97774] on Code

    Add missing includes.

  • Jindrich Makovicka Jindrich Makovicka created ticket #18

    Minor fixes for clang-tidy warnings

  • Daniel Aarno Daniel Aarno posted a comment on merge request #9

    Thanks

  • Daniel Aarno Daniel Aarno merged merge request #9 on Code

    Allow const Contraints to be passed to Arg constructors

  • John Beard John Beard created merge request #9 on Code

    Allow const Contraints to be passed to Arg constructors

  • Daniel Aarno Daniel Aarno modified ticket #39

    UnlabeledValueArg visitor

  • Daniel Aarno Daniel Aarno posted a comment on ticket #39

    Fixed in [3feeb7b2499b37d9cb80890cadaf7c905a9a50c6] and [77561f5fab620e0857a04c240ae981f679449e15] respectively. Thanks for reporting.

  • Daniel Aarno Daniel Aarno committed [3feeb7]

    Add missing call to check visitor in Unlabeled args.

  • Daniel Aarno Daniel Aarno committed [77561f]

    Add missing call to check visitor in Unlabeled args.

  • Daniel Aarno Daniel Aarno modified ticket #39

    UnlabeledValueArg visitor

  • Daniel Aarno Daniel Aarno posted a comment on ticket #26

    Thanks for the feedback, and sorry for the delay - I was traveling. I responded to the OP on SO, but here it is for posterity: This isn't really part of the design of TCLAP. It's focused on providing "POSIX style" command line flags/arguments, which was the style of the day. It would probably not be too difficult to provide a git-style parser in the same spirit of TCLAP, but as of now TCLAP is probably to wrong tool for the job.

  • Federico Ciuffardi Federico Ciuffardi posted a comment on ticket #39

    Also happens in version 1.2.5

  • Federico Ciuffardi Federico Ciuffardi created ticket #26

    Subcommands

  • Federico Ciuffardi Federico Ciuffardi created ticket #39

    UnlabeledValueArg visitor

  • Daniel Aarno Daniel Aarno modified ticket #38

    string exception with short app name

  • David Okamoto David Okamoto posted a comment on ticket #38

    Yes, it's fixed in that commit.

  • Daniel Aarno Daniel Aarno modified ticket #38

    string exception with short app name

  • Daniel Aarno Daniel Aarno posted a comment on ticket #38

    I believe this was fixed about a year ago in [57a98f01bc2ac69812c703df4a99f060240c7214]. Can you try fetching the latest version and see if that fixes the problem?

  • David Okamoto David Okamoto created ticket #38

    string exception with short app name

  • David Okamoto David Okamoto posted a comment on ticket #34

    I think this may work in 1.4: In CmdLine.h, add a member variable (bool _optionalUnlabeled;), initialized to false in the constructor, then check in this method: inline void CmdLine::addToArgList(Arg *a) { for (ArgListIterator it = _argList.begin(); it != _argList.end(); it++) if (*a == *(*it)) throw(SpecificationException( "Argument with same flag/name already exists!", a->longID())); if (!a->hasLabel()) { if (_optionalUnlabeled) throw(SpecificationException( "You can't specify ANY Unlabeled Arg...

  • Daniel Aarno Daniel Aarno posted a comment on ticket #33

    Done, I've cut a new 1.2.5 release that should compile with GCC 11

  • Templatized C++ Command Line Parser Templatized C++ Command Line Parser released /README.txt

  • Daniel Aarno Daniel Aarno committed [58c5c8]

    Cut the v1.2.5 release to fix GCC 11 build issues

  • Templatized C++ Command Line Parser Templatized C++ Command Line Parser released /tclap-1.2.5.tar.gz

  • peckato1 peckato1 posted a comment on ticket #33

    Is it possible to perform a version bump in 1.2 branch so that distro packagers gets notified and package the new fixed version?

  • Daniel Aarno Daniel Aarno posted a comment on ticket #24

    I think the challenge here is that it adds complexity for a very particular use-case, so it would have to be demonstrated that 1) this is useful for (some portion of) TCLAP's intended audience and 2) the change is simple enough to warrant adding this for everyone + the maintainers. So if you can come up with some use-cases for (1) and send a patch for (2) I'll take a look at it.

  • KOLANICH KOLANICH posted a comment on ticket #24

    I'm not sure exactly what problem you experience, but TCLAP doesn't hold on to any of the argv's. In fact, all the parse(int argc, const char const argv) method does is to copy the argv into a temporary vector that is destroyed when the function exits. You can use CmdLine::parse(std::vector<std::string> &args) instead of messing around with argc/argv. However, do note that this vector will be modified during parsing, so you probably want to make a copy of your input before calling parse - unless...

  • Daniel Aarno Daniel Aarno posted a comment on ticket #24

    I'm not sure exactly what problem you experience, but TCLAP doesn't hold on to any of the argv's. In fact, all the parse(int argc, const char *const *argv) method does is to copy the argv into a temporary vector that is destroyed when the function exits. inline void CmdLine::parse(int argc, const char *const *argv) { // this step is necessary so that we have easy access to // mutable strings. std::vector<std::string> args; for (int i = 0; i < argc; i++) args.push_back(argv[i]); parse(args); } Two...

  • KOLANICH KOLANICH created ticket #24

    Create another interface for `parse`

  • Yuri Yuri posted a comment on ticket #35

    Still no information about what you are trying to do or why, Like I wrote above, this is for the port. The port does not need tests and examples to build unconditionally because this just wastes CPU time. Perhaps that will allow you to do what you want. I'll retest with the next release, thanks.

  • Daniel Aarno Daniel Aarno posted a comment on ticket #35

    Still no information about what you are trying to do or why, but there were options added to disable various parts of the build in [a6429a]. Perhaps that will allow you to do what you want.

  • Daniel Aarno Daniel Aarno modified ticket #37

    TCLAP won't build with GCC 11.1

  • Daniel Aarno Daniel Aarno posted a comment on ticket #37

    Reported and fixed in https://sourceforge.net/p/tclap/bugs/33

  • Nick Moss Nick Moss posted a comment on ticket #23

    Hi Daniel, Thanks for the reply. I've worked around the issue by disabling the default arguments, removing the ignore rest and replacing them using the results from the internationalisation library. The workaround is working fine so it's not a critical feature for me personally, I just thought the suggestion might be helpful.

  • Nick Moss Nick Moss created ticket #37

    TCLAP won't build with GCC 11.1

  • Yuri Yuri posted a comment on ticket #36

    In the build directory ctest fails: [yuri@yv /usr/ports/devel/tclap/work/tclap-1.4.0-rc1]$ CTEST_OUTPUT_ON_FAILURE=1 ctest . Test project /usr/ports/devel/tclap/work/tclap-1.4.0-rc1 Start 1: test1 1/112 Test #1: test1 ............................***Failed 0.13 sec Traceback (most recent call last): File "/disk-samsung/freebsd-ports/devel/tclap/work/tclap-1.4.0-rc1/tests/test1.py", line 5, in <module> simple_test.test("test1", ["-r", "-n", "mike"]) File "/disk-samsung/freebsd-ports/devel/tclap/work/tclap-1.4.0-rc1/tests/simple_test.py",...

  • Yuri Yuri posted a comment on ticket #35

    There is a port for tclap. It builds a package that users then can use. There is no need to build tests and examples in the process of building a package.

  • Daniel Aarno Daniel Aarno modified ticket #23

    Support localization in TCLAP

  • Daniel Aarno Daniel Aarno posted a comment on ticket #23

    We should probably do a better job of localization in general - and not simply allow changing the default args. For now, I would suggest you simply change the text in the appropriate header (as this will likely take some time to get done).

  • Daniel Aarno Daniel Aarno posted a comment on ticket #35

    I do not know what "package build" means, please elaborate on what you are trying to do. Steps taken, expected result, and actual result. To use TCLAP you don't need to build anything, you can just include the headers.

  • Daniel Aarno Daniel Aarno modified ticket #36

    Tests fail: No such file or directory: '../examples/test22, etc

  • Daniel Aarno Daniel Aarno posted a comment on ticket #36

    Please run ctest from the build directory.

  • Yuri Yuri created ticket #36

    Tests fail: No such file or directory: '../examples/test22, etc

  • Yuri Yuri created ticket #35

    Please add configuration flag to disable building tests and examples

  • Nick Moss Nick Moss created ticket #23

    Allow replacing the descriptions of default arguments

  • Daniel Aarno Daniel Aarno merged merge request #8

    Fixed an error in CPack packaging

  • KOLANICH KOLANICH created merge request #8

    Fixed an error in CPack packaging

  • Alessandro Cossetto Alessandro Cossetto posted a comment on discussion Open Discussion

    Hello, I moved to UNICODE an old version of TCLAP, making it configurable to be ANSI or UNICODE. To do that I "simply" added a configuration file and I did a lot of find and replace, most of them automatically. To prevent conflits with the standard use of TCLAP, I renamed the namespace to TTCLAP. The configuration file contains a set of define: #if defined( TCLAP_WCHAR_T) #define _TT(x) L##x #define TTCLAP TWCLAP #define TTCHAR wchar_t #define STD_STRING std::wstring #define STD_COUT std::wcout #define...

  • Daniel Aarno Daniel Aarno modified a comment on ticket #34

    See also https://sourceforge.net/p/tclap/bugs/25/ for related issues with static variables. Fixing this in a backwards compatible way may be a bit tricky (because the Arg doesn't necessarily have access to the CmdLine object when it is created), and given that it's a pretty rare use-case (multiple CmdLine objects + Unlabeled arguments) I'm not convinced it's worth it. It should be fixed for 2.0 though. However, non-breaking patches would be welcomed.

  • Daniel Aarno Daniel Aarno posted a comment on ticket #34

    See also https://sourceforge.net/p/tclap/bugs/25/ for related issues with static variables. Fixing this in a backwards compatible way may be a bit tricky, and given that it's a pretty rare use-case (multiple CmdLine objects + Unlabeled arguments) I'm not convinced it's worth it. It should be fixed for 2.0 though. However, non-breaking patches would be welcomed.

  • KOLANICH KOLANICH created ticket #34

    Design around OptionalUnlabeledTracker is incorrect

  • KOLANICH KOLANICH posted a comment on ticket #28

    Multiple optional positional arguments may make sense. I.e. <tool name> <backend type 1> <backend type 2>, and when a backend is not specified, use the default one. The easiest way to resolve ambiguity is to assumme that the args that have been supplied occupy the arguments going earlier.

  • Godeffroy Valet Godeffroy Valet posted a comment on discussion Help

    Oh, you are right. I am using the github mirror, and I was on the master branch which is not up to date. The 1.4 branch is.

  • Daniel Aarno Daniel Aarno posted a comment on discussion Help

    This was http://sourceforge.net/p/tclap/bugs/33, and should be fixed in [b8e464] for 1.4 and [52a118] for 1.2.

  • Godeffroy Valet Godeffroy Valet posted a comment on discussion Help

    The private copy constructor are declared like this : ValueArg<T>(const ValueArg<T>& rhs); MultiArg<T>(const MultiArg<T>& rhs); This does not compile with GCC 11, with C++20 enabled. They should be declared like this : ValueArg(const ValueArg<T>& rhs); MultiArg(const MultiArg<T>& rhs);

  • Daniel Aarno Daniel Aarno posted a comment on merge request #7

    Thanks!

  • Daniel Aarno Daniel Aarno merged merge request #7

    CMake improvements, mainly the ones implementing packaging

  • KOLANICH KOLANICH created merge request #7

    CMake improvements, mainly the ones implementing packaging

  • Daniel Aarno Daniel Aarno modified ticket #33

    tclap does not compile with g++ 11

  • Daniel Aarno Daniel Aarno posted a comment on ticket #33

    Fixed in [b8e464] for 1.4, and [52a118] for 1.2.

  • Daniel Aarno Daniel Aarno committed [35a173]

    Remove confusing statement about not supplying flag argument.

  • Daniel Aarno Daniel Aarno committed [b8e464]

    Fix compilation issue with C++20 and gcc-11.1

  • Daniel Aarno Daniel Aarno committed [52a118]

    Fix compilation issue with C++20 and gcc-11.1

  • Daniel Aarno Daniel Aarno modified ticket #33

    tclap does not compile with g++ 11

  • peckato1 peckato1 created ticket #33

    tclap does not compile with g++ 11

  • Daniel Aarno Daniel Aarno updated merge request #6

    Replaced simple_test.sh with a C++ wrapper.

  • Daniel Aarno Daniel Aarno committed [130458]

    Fix issues with TmpFile stream.

  • Daniel Aarno Daniel Aarno committed [693f1d]

    Clean up tmpfiles using RAII.

  • Daniel Aarno Daniel Aarno committed [348b36]

    Run clang-format (no code changes).

  • Daniel Aarno Daniel Aarno committed [cce567]

    Switch to use TCLAP for arg parsing as it makes the code more readable.

  • Daniel Aarno Daniel Aarno committed [8a6bbf]

    Change to UNIX line endings.

  • Daniel Aarno Daniel Aarno committed [3f2469]

    Include what you use and put system headers last.

  • Daniel Aarno Daniel Aarno committed [f4582f]

    Clean up return branches, no need to keep a result variable.

  • Manuel Schmitz Manuel Schmitz created merge request #6

    Replaced simple_test.sh with a C++ wrapper.

  • Manuel Schmitz Manuel Schmitz posted a comment on ticket #21

    Meson is an emerging alternative to CMake, which comes with an easy-to-use dependency management. I am currently providing patches that connect TCLAP to the Meson package ecosystem. These are called "wrap files", which are basically references to the TCLAP source packages. If someone's project depends on TCLAP, then he can simply put that wrapfile into a special subfolder. Meson will then look for an installed version of TCLAP, and, if not found, download and build it. Along with the wrap file mentioned...

  • Templatized C++ Command Line Parser Templatized C++ Command Line Parser released /tclap-1.2.4.tar.gz

  • Daniel Aarno Daniel Aarno committed [c7cbdc]

    Fix automake issue on mac.

  • Daniel Aarno Daniel Aarno committed [a2891b]

    Fix some (harmless) warnings from Visual Studio.

  • Daniel Aarno Daniel Aarno committed [bca47a]

    clang-format on unittest files. No functional change.

  • Daniel Aarno Daniel Aarno committed [8ceef9]

    Added docs to install targets.

  • Daniel Aarno Daniel Aarno committed [d7f65c]

    Explicitly initiailze member variables in init-list.

  • Daniel Aarno Daniel Aarno committed [fee2b8]

    Include generated docs in release tarball.

  • Daniel Aarno Daniel Aarno committed [cd2539]

    Remove instructions to use cmake --install . --prefix=..., it appears flaky.

  • Templatized C++ Command Line Parser Templatized C++ Command Line Parser released /tclap-1.2.4.tar.gz

  • Daniel Aarno Daniel Aarno committed [5d3f81]

    Script for creating a release.

1 >
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.