From c7063ca640efd261b65d44e9ffd7cef2c4df0d6f Mon Sep 17 00:00:00 2001 From: Michal Date: Mon, 25 Jul 2022 19:46:49 +0100 Subject: [PATCH] Fixed docs for compartmentalised exitcodes --- docs/USAGE.md | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/docs/USAGE.md b/docs/USAGE.md index 975f82c..549e6a5 100644 --- a/docs/USAGE.md +++ b/docs/USAGE.md @@ -25,15 +25,8 @@ Work it harder, make it better! | AppExitCode (named Enum) | Exit code (i32) | Error Description | |--------------------------|-----------------|--------------------------------------------------------------------------------------------------------| | `RunAsRoot` | `1` | Malachite was run as root. This is highly discouraged. So highly, in fact, that it will refuse to run. | -| `BuildInWorkspace` | `2` | Malachite was run in Workspace mode, but a Repository-mode-specific operation was supplied | -| `PkgNotFound` | `3` | A build was attempted for a package that does not exist | -| `InvalidMode` | `4` | Malachite was launched in a mode other than `workspace` or `repository` | -| `DirNotEmpty` | `5` | The creation of a Malachite repository was attempted in a non-empty directory | -| `ConfigNotFound` | `6` | The default config file (`./mlc.toml`) was not found | -| `NoPkgs` | `7` | Somehow, no packages were supplied to/found in the relevant operation | -| `ConfigParseError` | `8` | The config file could not be parsed | -| `InvalidRepo` | `9` | The generated repository somehow contains no packages | - - - - +| `PkgsNotFound` | `2` | No packages were specified/found for the desired operation | +| `DirNotEmpty` | `3` | The creation of a Malachite repository was attempted in a non-empty directory | +| `ConfigParseError` | `4` | The config file could not be parsed | +| `RepoParseError` | `5` | The repository info could not be parsed | +| `RepoNotClean` | `6` | The git repository is not clean and cannot be removed without `--force` |