summaryrefslogtreecommitdiffstats
path: root/src/Configuration.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-18 02:04:21 -0400
committerDavid Robillard <d@drobilla.net>2022-08-18 02:04:21 -0400
commit9994cdebb60ecffcf81ced46ccfd12968ea3b2da (patch)
treeeddf1322d05e407fa3b683fca25a6a150427ddba /src/Configuration.cpp
parentc8152e8724c8e78fc53651f000a4e63aca945722 (diff)
downloadingen-9994cdebb60ecffcf81ced46ccfd12968ea3b2da.tar.gz
ingen-9994cdebb60ecffcf81ced46ccfd12968ea3b2da.tar.bz2
ingen-9994cdebb60ecffcf81ced46ccfd12968ea3b2da.zip
Use consistent spacing for line comments
Diffstat (limited to 'src/Configuration.cpp')
-rw-r--r--src/Configuration.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Configuration.cpp b/src/Configuration.cpp
index 794cf193..5af9fea1 100644
--- a/src/Configuration.cpp
+++ b/src/Configuration.cpp
@@ -193,9 +193,9 @@ Configuration::parse(int argc, char** argv)
if (o->second.type == _forge.Bool) { // --flag
o->second.value = _forge.make(true);
- } else if (equals) { // --opt=val
+ } else if (equals) { // --opt=val
set_value_from_string(o->second, equals + 1);
- } else if (++i < argc) { // --opt val
+ } else if (++i < argc) { // --opt val
set_value_from_string(o->second, argv[i]);
} else {
throw OptionError(fmt("Missing value for `%1%'", name));
@@ -211,15 +211,15 @@ Configuration::parse(int argc, char** argv)
}
const auto o = _options.find(n->second);
- if (j < len - 1) { // Non-final POSIX style flag
+ if (j < len - 1) { // Non-final POSIX style flag
if (o->second.type != _forge.Bool) {
throw OptionError(
fmt("Missing value for `%1%'", letter));
}
o->second.value = _forge.make(true);
- } else if (o->second.type == _forge.Bool) { // -f
+ } else if (o->second.type == _forge.Bool) { // -f
o->second.value = _forge.make(true);
- } else if (++i < argc) { // -v val
+ } else if (++i < argc) { // -v val
set_value_from_string(o->second, argv[i]);
} else {
throw OptionError(fmt("Missing value for `%1%'", letter));