Activity for Templatized C++ Command Line Parser

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

  • Daniel Aarno Daniel Aarno committed [6e179a]

    More fixes to make distcheck work (with parallel builds).

  • Daniel Aarno Daniel Aarno committed [e02789]

    ChangeLog for 1.2.4 updated.

  • Daniel Aarno Daniel Aarno committed [b33422]

    Fix an issue where `make dist` would fail if building outside of srcdir.

  • Daniel Aarno Daniel Aarno committed [b541dc]

    Fix manual build-rule so it works from build directory.

  • Daniel Aarno Daniel Aarno committed [5fb108]

    Modernize automake config.

  • Daniel Aarno Daniel Aarno committed [ed7604]

    Force tests to run sequentially.

  • Daniel Aarno Daniel Aarno committed [6050e0]

    Allow running tests from any directory.

  • Daniel Aarno Daniel Aarno committed [835c8d]

    Bump patch version number

  • Daniel Aarno Daniel Aarno modified ticket #32

    typos on http://tclap.sourceforge.net/

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

    Thank! Fixed in [7973293a297ee31f056a0c508c454d0f1a308bb2] and [4d125c14d6965ddf1340121be1e4b5cfabc27573]

  • Daniel Aarno Daniel Aarno committed [797329]

    Fixed typos.

  • Daniel Aarno Daniel Aarno committed [4d125c]

    Fixed typos.

  • Randy MacLeod Randy MacLeod created ticket #32

    typos on http://tclap.sourceforge.net/

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

    Fixed in [57a98f] (with a follow up fix for Windows in [f73351])

  • Daniel Aarno Daniel Aarno modified ticket #17

    Parsing error: erroneous '.exe' stripping throws std::out_of_range

  • Daniel Aarno Daniel Aarno committed [f73351]

    Fix compilation issue on Windows.

  • Daniel Aarno Daniel Aarno committed [57a98f]

    Fix a bug where help output would crash if the program name was 3 chars.

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

    Thank, I can confirm this. A fix should be forthcoming (but by all means, do apply your patch locally for now - or just check if the length is < 4 and return even before the call to rfind)

  • Daniel Aarno Daniel Aarno modified ticket #17

    Parsing error: erroneous '.exe' stripping throws std::out_of_range

  • Franco Vieira de Souza Franco Vieira de Souza posted a comment on ticket #17

    Edit: sorry for the badly formatted message, I'm not used to sourceforge. Here's another go: Exception message: terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::erase: __pos (which is 18446744073709551615) > this->size() (which is 3) Offending code: // CmdLineOutput.h, lines 101-102 p = s.rfind(".exe"); if (p == s.length() - 4) { Fix: // CmdLineOutput.h, lines 101-102 p = s.rfind(".exe"); if (p != std::string::npos and p == s.length() - 4) {

  • Franco Vieira de Souza Franco Vieira de Souza created ticket #17

    Parsing error: erroneous '.exe' stripping throws std::out_of_range

  • Daniel Aarno Daniel Aarno committed [5ae5de]

    Add sourceforge download badge.

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

  • Daniel Aarno committed [87767b]

    Bump version number for "final" release of 1.2 as 1.4 is now live.

  • Daniel Aarno committed [38062c]

    Clear NEWS file, it's not been updated since forever.

  • Daniel Aarno committed [0f82e9]

    Update changelog for v1.2.3 release

  • Daniel Aarno committed [b196a9]

    Include simple-test in release tarball.

  • Daniel Aarno committed [904110]

    Mention current maintainer instead of contributor.

  • Daniel Aarno Daniel Aarno committed [c2581b]

    Make a note about 1.4 and add build status

  • Daniel Aarno Daniel Aarno committed [13dd99]

    Fix compilation error on Mac OS.

  • Daniel Aarno Daniel Aarno committed [dd1a46]

    Start putting docs under "v1.2".

  • Daniel Aarno Daniel Aarno committed [a5e41a]

    Upload docs for 1.4 to both 1.4 and root.

  • Daniel Aarno Daniel Aarno committed [ba72b8]

    Include build status on landing page.

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

  • Daniel Aarno committed [675f5a]

    Make a note that CMake < 3.15 needs plaform specific installer.

  • Daniel Aarno committed [c73d22]

    Drop the "invaluable contributions", it sounds silly now

  • Daniel Aarno committed [799a8b]

    Script to copy files for release.

  • Daniel Aarno committed [fb3f21]

    Clarify that --prefix flag goes on the --install command.

  • Daniel Aarno committed [80cc1a]

    Run clang-format on all files in prep. for 1.4 release.

  • Daniel Aarno committed [958c09]

    Update ChangeLog for 1.4 release.

  • Daniel Aarno committed [57fc06]

    Clean the news file for 1.4 release.

  • Daniel Aarno committed [1c5633]

    Note current maintainer in authors file.

  • Daniel Aarno Daniel Aarno committed [acf907]

    Cleaup manual.xml for 1.4 release candidate.

  • Daniel Aarno Daniel Aarno committed [e2c619]

    Update Google copyright stansa.

  • Daniel Aarno Daniel Aarno committed [8d8a0c]

    Fix compilation error on MacOS

  • Daniel Aarno Daniel Aarno committed [b84883]

    Update copyright notices and version info.

  • Daniel Aarno Daniel Aarno committed [cf8d7b]

    Note that this is for v1.4 and where to find 1.2 docs

  • Daniel Aarno Daniel Aarno committed [93ee0c]

    Remove unused arguments from test (fix warnings).

  • Daniel Aarno Daniel Aarno committed [8b35dd]

    Add example for how to use a pair as a custom type.

  • Daniel Aarno Daniel Aarno committed [064fd7]

    Add example for how to use a pair as a custom type.

  • Daniel Aarno Daniel Aarno committed [e53957]

    HTML manual is now built by cmake, no need to maintain it manually.

  • Daniel Aarno Daniel Aarno modified ticket #9

    Argument dependencies

  • Daniel Aarno Daniel Aarno modified ticket #2

    User other type like pair

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

    Updated documentation and provided examples: http://tclap.sourceforge.net/manual.html#USING_ARGTRAITS

  • Daniel Aarno Daniel Aarno committed [366bb1]

    Update generated documentation for 1.4.

  • Daniel Aarno Daniel Aarno modified ticket #2

    User other type like pair

  • Daniel Aarno Daniel Aarno modified ticket #29

    Document how to use ExitException to avoid program termination

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

    Documentation has been updated for both 1.2 and 1.4.

  • Daniel Aarno Daniel Aarno committed [7c9519]

    Add documentation for ExitException.

  • Daniel Aarno Daniel Aarno committed [758442]

    Echo commands from upload script.

  • Daniel Aarno Daniel Aarno committed [2ea15d]

    Add documentation for ExitException.

  • Daniel Aarno Daniel Aarno committed [3ee2d7]

    Echo commands from upload script.

  • Daniel Aarno Daniel Aarno committed [e51356]

    Clarify that ArgException doesn't catch *any* exception.

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

    Fixed in [9a8967d6f32b4a4b805899026ace355a2ef8177b] for 1.2 and [96fd5eae03553ed380ad66bcabc5219e534ef13d] for 1.4.

  • Daniel Aarno Daniel Aarno modified ticket #30

    Check arguments vector is not empty before accessing first element

  • Daniel Aarno Daniel Aarno committed [7962f4]

    Add some generated file types to gitignore (and sort it).

  • Daniel Aarno Daniel Aarno committed [b8167f]

    Add missing expected test output from [96fd5ea].

  • Daniel Aarno Daniel Aarno committed [96fd5e]

    Check arguments vector is not empty before accessing first element.

  • Daniel Aarno Daniel Aarno committed [04b146]

    Check arguments vector is not empty before accessing first element.

  • Daniel Aarno Daniel Aarno committed [9a8967]

    Add some generated file types to gitignore (and sort it).

  • Daniel Aarno Daniel Aarno modified ticket #28

    (Request) Adding multiple optional unlabeled arguments

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

    Closing as won't fix due to lack of details/agreement on the problem. If your patch solves your problem, you can always implement it locally. However, I don't think the behaviour you want (if I understand correctly) is suitable for the general purpose library. Feel free to re-open if you have additional details or thoughts.

  • Daniel Aarno Daniel Aarno modified ticket #29

    Document how to use ExitException to avoid program termination

  • Daniel Aarno Daniel Aarno modified ticket #31

    Potential bug in MultiSwitchArg

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

    You can use either string or value semantics, but if you want the latter you need to have operator>> and operator<< defined in global scope for your new type. However, I think the problem you are facing is different. In your example you have –p 210 0.005 which will be split into three separate arguments in argv (because of the spaces). There is no way for TCLAP to know that you want both the "210" and "0.005" to belong to the -p flag. Each flag expects exactly one argument following it, so you would...

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

    You can use either string or value semantics, but if you want the latter you need to have operator>> and operator<< defined in global scope for your new type. However, I think the problem you are facing is different. In your example you have –p 210 0.005 which will be split into three separate arguments in argv (because of the spaces). There is no way for TCLAP to know that you want both the "210" and "0.005" to belong to the -p flag. Each flag expects exactly one argument following it, so you would...

  • CHRISTOPHE MOUILLET CHRISTOPHE MOUILLET created ticket #2

    User other type like pair

  • Mads Zülow Anholm Laursen Mads Zülow Anholm Laursen posted a comment on ticket #31

    I'm using v1.2.2. I just went back and looked at my code, and I realized that the errors I was getting was due to my own implementation of TCLAP. The "fix" I made in MultiSwitchArg.h wasn't the thing that fixed my issue, it was the rework of my own implementation. Sorry about this, I'm now certain that it wasn't an issue with TCLAP that caused the issues.

  • Daniel Aarno Daniel Aarno modified ticket #31

    Potential bug in MultiSwitchArg

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

    Do you have an example? Also what version are you using? The following works as expected for me #include <tclap/CmdLine.h> #include <iostream> int main(int argc, char *argv[]) { TCLAP::CmdLine cmd("Command description message", ' ', "0.9"); TCLAP::MultiSwitchArg quiet("q","quiet","Reduce the volume of output"); cmd.add( quiet ); cmd.parse(argc, argv); std::cout << quiet.getValue() << std::endl; } ./a.out -q -q 2

  • Mads Zülow Anholm Laursen Mads Zülow Anholm Laursen created ticket #31

    Potential bug in MultiSwitchArg

  • Daniel Aarno Daniel Aarno modified ticket #29

    Please don't exit(), throw an exception a user may catch.

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

    Yeah, this was initially added as an internal implementation detail to allow resources to be cleaned up before exiting, but it can actually be useful in cases such as you described. I think we should document it properly.

  • Alexander Brock Alexander Brock posted a comment on ticket #29

    That works nicely for me, thank you. I think the manual should be updated, in the example it says "catch (TCLAP::ArgException &e) // catch any exceptions" so I got confused when my program terminated and gdb wouldn't show me any reason for that.

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

    Would it work to call setExceptionHandling(false) to allow the exception to propagate?

  • Daniel Aarno Daniel Aarno modified ticket #30

    Check arguments vector is not empty before accessing first element

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

    Sounds reasonable. This will never happen when argv/c comes from the command line, but I don't see why we could not add this check.

  • Alexander Brock Alexander Brock posted a comment on ticket #30

    I messed up the title, I wanted "Check arguments vector is not empty before accessing first element" but it seems I can't edit titles

  • Alexander Brock Alexander Brock created ticket #30

    Check

  • Alexander Brock Alexander Brock created ticket #29

    Please don't exit(), throw an exception a user may catch.

  • Daniel Aarno Daniel Aarno modified ticket #28

    (Request) Adding multiple optional unlabeled arguments

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

    So, I think the idea here was that you "can't" really have multiple optional positional arguments. As an example, in this case how would the user specify the websocket port if they did not specify the transport port? Of course it would be possible to allow this and create an implicit dependency between the optional args, but it may be error prone for the programmer and confusing for the end user. For 1.4 we have introduced something called ArgGroups, it may be possible (would have to think about...

<< < 1 2 >
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.