Skip to content

Add the name of the program as the command name for the top-level ParsingResults #5

Description

@lecode-official

When having command line parameters as follows:

test value01 value02 --flag --argument01 value03 --argument02 value04

then test should be set as the command name in the top-level ParsingResults as it is the equivalent to a command. When the program contains a file extension and/or a path, then the path should be stripped from the command name, e.g.

C:\Program Files\test.exe value01 value02 /flag /argument01 value03 /argument02 value04

should result in test.exe being the command name.

Right now the program file name and path are just discarded during the parsing, which is not good, considering that, when help pages are implemented, the program file name is important, as it is needed to display the usage of the program.

Activity

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

    Type: Idea or RequestThe issue or pull request concerns an idea or the request for adding a new feature.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions