diff options
| author | Hennadii Stepanov <[email protected]> | 2019-07-27 10:48:25 +0300 |
|---|---|---|
| committer | Hennadii Stepanov <[email protected]> | 2019-07-27 15:05:14 +0300 |
| commit | 1b4b9422cad28d1bead24ff5fd472536954cfaf9 (patch) | |
| tree | 32600f1aff34a01617d445fd598fb1b15099bf2e /src/util/system.h | |
| parent | Add Flags enum to ArgsManager (diff) | |
| download | discoin-1b4b9422cad28d1bead24ff5fd472536954cfaf9.tar.xz discoin-1b4b9422cad28d1bead24ff5fd472536954cfaf9.zip | |
scripted-diff: Use Flags enum in AddArg()
-BEGIN VERIFY SCRIPT-
sed -i 's/const bool debug_only,/unsigned int flags, &/' src/util/system.h src/util/system.cpp
sed -i -E 's/(true|false), OptionsCategory::/ArgsManager::ALLOW_ANY, &/' $(git grep --files-with-matches 'AddArg(' src)
-END VERIFY SCRIPT-
Diffstat (limited to 'src/util/system.h')
| -rw-r--r-- | src/util/system.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/system.h b/src/util/system.h index 27b364a5e..0ec09e756 100644 --- a/src/util/system.h +++ b/src/util/system.h @@ -272,7 +272,7 @@ public: /** * Add argument */ - void AddArg(const std::string& name, const std::string& help, const bool debug_only, const OptionsCategory& cat); + void AddArg(const std::string& name, const std::string& help, unsigned int flags, const bool debug_only, const OptionsCategory& cat); /** * Add many hidden arguments |