Skip to content

[Console] help and merging of application arguments #17804

Closed
@bamarni

Description

@bamarni

Lately I've seen a few inconsistencies with the help command, mainly due to arguments merging. I'll use composer as an example.

> composer help list
Usage:
  list [options] [--] [<namespace>]

Arguments:
  namespace            The namespace name

Options:
      # Here there are only 3 options, it misses all global options
      --xml            To output list as XML
      --raw            To output raw command list
      --format=FORMAT  The output format (txt, xml, json, or md) [default: "txt"]

This issue is due to #3569, I think it should be reverted since @Seldaek fixed it in a more generic way here #7650.

For the help command, the extra arg is still here though :

> composer help
Usage:
  help [options] [--] [<command_name>]

Arguments:
  # Here it displays an extra argument at the beginning (which belongs to application)
  command                        The command to execute 
  command_name                   The command name [default: "help"]

I had submitted #9286 on top of @Seldaek fixes, should I rebase and check if it's still working? Or do you think it can be solved in a better way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy