# Add an OPTIONS chunk to Documentation/git-sparse-checkout.txt

3 messages from 2022-03-09 to 2022-03-09. Participants: Shaoxuan Yuan, Bagas Sanjaya, Derrick Stolee.
Thread: https://gitlist.dev/t/57523

## Shaoxuan Yuan, 2022-03-09 07:55

Subject: Add an OPTIONS chunk to Documentation/git-sparse-checkout.txt
Message-ID: <CAJyCBOTKq3t=QtynBMrHvP5__FfNpoeUJ7t8xMv-3zTbv4yU7Q@mail.gmail.com>
URL: https://gitlist.dev/e/CAJyCBOTKq3t%3DQtynBMrHvP5__FfNpoeUJ7t8xMv-3zTbv4yU7Q%40mail.gmail.com

```
Hi all,

I'm wondering if we could add an OPTIONS chunk to
Documentation/git-sparse-checkout.txt?

Cause when I was skimming through the SYNOPSIS
and it says "git sparse-checkout <subcommand> [<options>]"
but I didn't quite see the options until I read into the COMMANDS.

Perhaps something like this:

OPTIONS

    --[no-]cone

    --[no-]sparse-index

    --stdin

If this is okay to do then I will try to submit a patch later :)
-- 
Thanks & Regards,
Shaoxuan

```

## Bagas Sanjaya, 2022-03-09 12:42

Subject: Re: Add an OPTIONS chunk to Documentation/git-sparse-checkout.txt
Message-ID: <a0bb08ba-ef7a-53ec-a3c1-9238f9eb90ce@gmail.com>
URL: https://gitlist.dev/e/a0bb08ba-ef7a-53ec-a3c1-9238f9eb90ce%40gmail.com
In-Reply-To: <CAJyCBOTKq3t=QtynBMrHvP5__FfNpoeUJ7t8xMv-3zTbv4yU7Q@mail.gmail.com>

```
On 09/03/22 14.55, Shaoxuan Yuan wrote:
> Hi all,
> 
> I'm wondering if we could add an OPTIONS chunk to
> Documentation/git-sparse-checkout.txt?
> 
> Cause when I was skimming through the SYNOPSIS
> and it says "git sparse-checkout <subcommand> [<options>]"
> but I didn't quite see the options until I read into the COMMANDS.
> 
> Perhaps something like this:
> 
> OPTIONS
> 
>      --[no-]cone
> 
>      --[no-]sparse-index
> 
>      --stdin
> 
> If this is okay to do then I will try to submit a patch later :)

OK, but we need to list out subcommands and options in the SYNOPSIS,
much like in git-worktree(1) and git-submodule(1).

-- 
An old man doll... just what I always wanted! - Clara

```

## Derrick Stolee, 2022-03-09 15:23

Subject: Re: Add an OPTIONS chunk to Documentation/git-sparse-checkout.txt
Message-ID: <b5afa73a-d563-eb89-2557-5dcc02df2541@github.com>
URL: https://gitlist.dev/e/b5afa73a-d563-eb89-2557-5dcc02df2541%40github.com
In-Reply-To: <a0bb08ba-ef7a-53ec-a3c1-9238f9eb90ce@gmail.com>

```
On 3/9/2022 7:42 AM, Bagas Sanjaya wrote:
> On 09/03/22 14.55, Shaoxuan Yuan wrote:
>> Hi all,
>>
>> I'm wondering if we could add an OPTIONS chunk to
>> Documentation/git-sparse-checkout.txt?
>>
>> Cause when I was skimming through the SYNOPSIS
>> and it says "git sparse-checkout <subcommand> [<options>]"
>> but I didn't quite see the options until I read into the COMMANDS.
>>
>> Perhaps something like this:
>>
>> OPTIONS
>>
>>      --[no-]cone
>>
>>      --[no-]sparse-index
>>
>>      --stdin
>>
>> If this is okay to do then I will try to submit a patch later :)
> 
> OK, but we need to list out subcommands and options in the SYNOPSIS,
> much like in git-worktree(1) and git-submodule(1).

Thank you for showing an interest in improving our docs! Be sure
to start from Elijah's recent series [1] that overhauls the docs in
a few different ways, just to avoid conflicts.

[1] https://lore.kernel.org/git/pull.1148.git.1646725188.gitgitgadget@gmail.com/

Thanks,
-Stolee

```
