Skip to content

Clarify the implemented command line conventions #741

Closed

Description

@andy-maier

Click states that it "fully follows the Unix command line conventions" (on http://click.pocoo.org/6/why/).

Because lateron it refers to "POSIX compliant argument handling", I assume that this means that click conforms to 12.2 "Utility Syntax Guidelines" in POSIX.1-2008 (http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html#tag_12_02).

These guidelines however do not cover long options names at all.

It would be good if Click in its documentation clearly described the implemented command line conventions. This can be done for example by providing a reference to some other document plus describing any deviations or additions.

Activity

  1. untitaker commented on Feb 22, 2017

    @untitaker
    Contributor

    Long-form options are IIRC an "extension" by GNU, I guess it's somewhere in https://www.gnu.org/prep/standards/standards.html

  2. added
    docs
    on Feb 22, 2017
  3. dougharris commented on May 15, 2018

    @dougharris
    Contributor

    I think the nuance here is that Click supports developers in creating command line tools which follow Unix command line conventions. Click allows developers to follow, or not follow, good option practice as much as or as little as they like. I'll submit a PR which modifies this feature description.

  4. added this to the 7.0 milestone on Sep 10, 2018
  5. added 2 commits that reference this issue on Oct 8, 2018
  6. added a commit that references this issue on Oct 29, 2018
  7. locked as resolved and limited conversation to collaborators on Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docs

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions