commit | ad01d7aa34963e61dbbae6e055867e0efe27e7ee | [log] [tgz] |
---|---|---|
author | Cosmos Nicolaou <cnicolaou@google.com> | Thu Feb 25 12:49:39 2016 -0800 |
committer | Cosmos Nicolaou <cnicolaou@google.com> | Thu Feb 25 12:49:39 2016 -0800 |
tree | c2f44a22e3d2327f0ba411ef91ef210bf21a0d28 | |
parent | 63b6f7c7ed7f906793914f735c64fc6c1899094c [diff] |
v.io/x/lib/cmdline: subtle bug fix for accessing parsed flags. The commandline package has some complex logic for handling duplicate flags. As part of this it takes a copy of the flagset specified for the command and possibly manipulates this copy. However, the copy is currently inaccessible to the application and hence calls to Visit/Narg etc are unpredictable depending on whether the original flag set is used or not. A new member variable, ParsedFlags is added which is guaranteed to be set to the FlagSet that is actually parsed. Change-Id: I676b01575a71d7e8f9049fd649647f9a3491c87e
This repository contains general purpose libraries used by the Vanadium project.