mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
seq: Allow option to receive immediate arguments
WIP: this needs to be adjusted
This commit is contained in:
parent
66733ca994
commit
a2e9329918
2 changed files with 5 additions and 5 deletions
|
@ -146,7 +146,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||||
pub fn uu_app<'a>() -> App<'a> {
|
pub fn uu_app<'a>() -> App<'a> {
|
||||||
App::new(uucore::util_name())
|
App::new(uucore::util_name())
|
||||||
.setting(AppSettings::TrailingVarArg)
|
.setting(AppSettings::TrailingVarArg)
|
||||||
.setting(AppSettings::AllowHyphenValues)
|
.setting(AppSettings::AllowNegativeNumbers)
|
||||||
.setting(AppSettings::InferLongArgs)
|
.setting(AppSettings::InferLongArgs)
|
||||||
.version(crate_version!())
|
.version(crate_version!())
|
||||||
.about(ABOUT)
|
.about(ABOUT)
|
||||||
|
|
|
@ -20,14 +20,14 @@ fn test_hex_rejects_sign_after_identifier() {
|
||||||
.args(&["-0x-123ABC"])
|
.args(&["-0x-123ABC"])
|
||||||
.fails()
|
.fails()
|
||||||
.no_stdout()
|
.no_stdout()
|
||||||
.stderr_contains("invalid floating point argument: '-0x-123ABC'")
|
.stderr_contains("which wasn't expected, or isn't valid in this context")
|
||||||
.stderr_contains("for more information.");
|
.stderr_contains("For more information try --help");
|
||||||
new_ucmd!()
|
new_ucmd!()
|
||||||
.args(&["-0x+123ABC"])
|
.args(&["-0x+123ABC"])
|
||||||
.fails()
|
.fails()
|
||||||
.no_stdout()
|
.no_stdout()
|
||||||
.stderr_contains("invalid floating point argument: '-0x+123ABC'")
|
.stderr_contains("which wasn't expected, or isn't valid in this context")
|
||||||
.stderr_contains("for more information.");
|
.stderr_contains("For more information try --help");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue