Add drive:N as a valid flux source and sink specifier; remove the --drive

option. Also, a bunch of option cleanup.
This commit is contained in:
David Given
2021-05-20 22:14:22 +02:00
parent 34e9742f71
commit 18b683d22e
9 changed files with 36 additions and 73 deletions

View File

@@ -54,6 +54,7 @@ void FluxSource::updateConfigForFilename(FluxSourceProto* proto, const std::stri
{ std::regex("^erase:$"), [&](const auto& s) { proto->mutable_erase(); }},
{ std::regex("^kryoflux:(.*)$"), [&](const auto& s) { proto->mutable_kryoflux()->set_directory(s); }},
{ std::regex("^testpattern:(.*)"), [&](const auto& s) { proto->mutable_test_pattern(); }},
{ std::regex("^drive:(.*)"), [&](const auto& s) { proto->mutable_drive()->set_drive(std::stoi(s)); }},
};
for (const auto& it : formats)