Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Robustness to double -- delimiters #111

Closed
dhood opened this issue Oct 27, 2016 · 1 comment
Closed

Robustness to double -- delimiters #111

dhood opened this issue Oct 27, 2016 · 1 comment
Labels
wontfix This will not be worked on

Comments

@dhood
Copy link
Contributor

dhood commented Oct 27, 2016

-- can be used to signal the end of a "catch all" argument group when invoking ament from the command line.

It's possible that, when command line arguments are being built up programmatically for example, the delimiter is added twice. This currently isn't handled.

$ ament build . --force-cmake-configure --cmake-args -DCMAKE_BUILD_TYPE=Debug -- -- --ament-cmake-args -DCMAKE_BUILD_TYPE=Release
usage: ament [-h]
             [uninstall_pkg | test_pkg | package_version | uninstall | test_results | build | list_packages | build_pkg | package_name | test]
             ...
ament: error: unrecognized arguments: --
@dirk-thomas
Copy link
Contributor

If the caller if careful about constructing the command line this should never happen. A simple strategy could be wherever concatenation happens it either always appends -- when necessary or always prepends it (but doesn't mix both approaches).

Therefore I don't think this package needs to handle this case and I would close this as "wontfix".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants