Skip to content

Style question: What about variable number of arguments (varargs)? #5791

@xeruf

Description

@xeruf

In some cases, one or multiple (or even zero) of an argument can be passed, should we use any specific syntax here? Didn't find anything on https://github.com/tldr-pages/tldr/blob/master/contributing-guides/style-guide.md#token-syntax.

I was thinking of the classical ... which I started using in a PR already: xeruf@ab75453
The question then is whether to use singular or plural, i.e. files... or file....

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestions related to tldr-pages.syntaxIssues related to the content and markup of the pages.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions