Skip to content

Commit

Permalink
split -1 in should be accepted
Browse files Browse the repository at this point in the history
  • Loading branch information
zhitkoff committed Aug 19, 2023
1 parent a1aac98 commit a7d972b
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/uu/split/src/split.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// * This file is part of the uutils coreutils package.
// *
// * (c) Akira Hayakawa <[email protected]>
// *
// * For the full copyright and license information, please view the LICENSE
// * file that was distributed with this source code.
// *

// * This file is part of the uutils coreutils package.
// spell-checker:ignore nbbbb ncccc

mod filenames;
Expand All @@ -13,8 +13,8 @@ mod platform;

use crate::filenames::FilenameIterator;
use crate::filenames::SuffixType;
use clap::ArgAction;
use clap::error::Result;
use clap::ArgAction;
use clap::{crate_version, parser::ValueSource, Arg, ArgMatches, Command};
use std::env;
use std::fmt;
Expand Down Expand Up @@ -406,9 +406,12 @@ impl Strategy {
(true, false, false, false, false) => {
get_and_parse(matches, OPT_LINES, Self::Lines, StrategyError::Lines)
}
(false, true, false, false, false) => {
get_and_parse(matches, OPT_LINES_SHORTHAND, Self::Lines, StrategyError::Lines)
}
(false, true, false, false, false) => get_and_parse(
matches,
OPT_LINES_SHORTHAND,
Self::Lines,
StrategyError::Lines,
),
(false, false, true, false, false) => {
get_and_parse(matches, OPT_BYTES, Self::Bytes, StrategyError::Bytes)
}
Expand Down

0 comments on commit a7d972b

Please sign in to comment.