mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 22:21:15 -03:00
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:
committed by
Fabian Boehm
parent
7c2311abd7
commit
a92804a8a1
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user