-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a dry_run argument to Argument::consume(), and change ArgumentPar…
…ser private section to protected Both changes are needed in the special case of GDAL where our existing hand-made argument parser accepts positional arguments placed anywhere in the arguments, not just after optional arguments. In the GDAL code, in OSGeo/gdal@8bb3455#diff-4592e7daae8543536dbeadf05a3c110282ea0fc089216186138c923a0d4d8000R170 , I've implemented a preliminary pass before calling ArgumentParser::process_args() that re-order arguments. For that, I need to be able to call consume() but without side-effects (dry_run=False) and accept members that are private
- Loading branch information
Showing
1 changed file
with
44 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters