Stub subcommand descriptions for reserved names.
(name: &str)
| 36 | |
| 37 | /// Stub subcommand descriptions for reserved names. |
| 38 | fn stub_description(name: &str) -> &'static str { |
| 39 | match name { |
| 40 | "migrate" => "schema/data migration", |
| 41 | "backup" => "online backup", |
| 42 | "restore" => "restore", |
| 43 | "verify" => "verify (consistency check)", |
| 44 | "repair" => "repair", |
| 45 | "dump" => "dump (logical export)", |
| 46 | "fsck" => "fsck", |
| 47 | _ => "not yet implemented", |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | /// Parse `args` (the tail of `std::env::args()` after the binary name) |
| 52 | /// into a subcommand. Returns `Ok(None)` when the first arg doesn't |