mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-02 14:07:46 +00:00
dir & vdir: fix docs not showing up on the website
uudoc was getting a dummy clap app to generate documentation from. Now the app from ls is returned instead, so that it actually shows something.
This commit is contained in:
parent
87e3899477
commit
f255c0cae8
2 changed files with 5 additions and 5 deletions
|
@ -13,7 +13,7 @@ use uucore::quoting_style::{Quotes, QuotingStyle};
|
|||
|
||||
#[uucore::main]
|
||||
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||
let command = uu_ls::uu_app();
|
||||
let command = uu_app();
|
||||
|
||||
let matches = command.get_matches_from(args);
|
||||
|
||||
|
@ -64,7 +64,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
|||
|
||||
// To avoid code duplication, we reuse ls uu_app function which has the same
|
||||
// arguments. However, coreutils won't compile if one of the utils is missing
|
||||
// an uu_app function, so we need this dummy one.
|
||||
// an uu_app function, so we return the `ls` app.
|
||||
pub fn uu_app<'a>() -> Command<'a> {
|
||||
Command::new(uucore::util_name())
|
||||
uu_ls::uu_app()
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ use uucore::quoting_style::{Quotes, QuotingStyle};
|
|||
|
||||
#[uucore::main]
|
||||
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||
let command = uu_ls::uu_app();
|
||||
let command = uu_app();
|
||||
let matches = command.get_matches_from(args);
|
||||
|
||||
let mut default_quoting_style = false;
|
||||
|
@ -64,5 +64,5 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
|||
// arguments. However, coreutils won't compile if one of the utils is missing
|
||||
// an uu_app function, so we need this dummy one.
|
||||
pub fn uu_app<'a>() -> Command<'a> {
|
||||
Command::new(uucore::util_name())
|
||||
uu_ls::uu_app()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue