summaryrefslogtreecommitdiff
path: root/src/Command.cc
diff options
context:
space:
mode:
authorRichard Kettlewell <rjk@greenend.org.uk>2011-04-28 20:03:55 +0100
committerRichard Kettlewell <rjk@greenend.org.uk>2011-04-28 20:03:55 +0100
commit30298e0efda22dcf54fdd0a18917d68ed638db2d (patch)
tree736444fb42e3f2642545ca5c20063faa5dec5218 /src/Command.cc
parente9bf40783420f0a5d1c31078532920e0486771a1 (diff)
Comments
Diffstat (limited to 'src/Command.cc')
-rw-r--r--src/Command.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Command.cc b/src/Command.cc
index bf2b496..40c6800 100644
--- a/src/Command.cc
+++ b/src/Command.cc
@@ -7,6 +7,10 @@
#include <cstdio>
#include <cstdlib>
+// Long-only options
+//
+// The short forms aren't acutally document at the moment, but they might be
+// one day.
enum {
RETIRE_DEVICE = 256,
RETIRE = 257,
@@ -162,6 +166,8 @@ void Command::parse(int argc, char **argv) {
}
void Command::selectVolumes() {
+ // This is a separate method because it has to be called after the config
+ // file is read.
for(size_t n = 0; n < selections.size(); ++n)
config.selectVolume(selections[n].host,
selections[n].volume,