Port MISSING_HELP and MISSING (arg)

C++ main used getopt (no w!), which appears to internally print
error-messages. The Rust version will use `wgetopter_t`, and therefore needs to
print this itself.
This commit is contained in:
Henrik Hørlück Berg
2023-08-18 07:08:31 +02:00
committed by Fabian Boehm
parent 7c2311abd7
commit a92804a8a1

View File

@@ -59,6 +59,9 @@ unsafe impl ExternType for io_streams_t {
/// Error message for unknown switch.
pub const BUILTIN_ERR_UNKNOWN: &str = "%ls: %ls: unknown option\n";
pub const BUILTIN_ERR_MISSING_HELP: &str = "fish: %ls: missing man page\nDocumentation may not be installed.\n`help %ls` will show an online version\n";
pub const BUILTIN_ERR_MISSING: &str = "%ls: %ls: option requires an argument\n";
/// Error messages for unexpected args.
pub const BUILTIN_ERR_ARG_COUNT0: &str = "%ls: missing argument\n";
pub const BUILTIN_ERR_ARG_COUNT1: &str = "%ls: expected %d arguments; got %d\n";