Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Support argparse.REMAINDER #90

Closed
Freed-Wu opened this issue Aug 27, 2022 · 0 comments · Fixed by #93
Closed

[feature] Support argparse.REMAINDER #90

Freed-Wu opened this issue Aug 27, 2022 · 0 comments · Fixed by #93
Assignees
Labels
enhancement New feature or request external-request You asked, we did shell-zsh

Comments

@Freed-Wu
Copy link
Contributor

    parser.add_argument(
        "script_args",
        nargs="*",
        help="Arguments to pass to script or module",
    )

for nargs="*", generate '*::: :->XXX' for zsh

    parser.add_argument(
        "script_args",
        nargs=argparse.REMAINDER,
        help="Arguments to pass to script or module",
    )

for nargs="...", generate '(-)*::: :->XXX' for zsh.

@casperdcl casperdcl added the enhancement New feature or request label Oct 26, 2022
@casperdcl casperdcl changed the title [feature] Support argparse.REMINDER [feature] Support argparse.REMAINDER Oct 29, 2022
@casperdcl casperdcl added the external-request You asked, we did label Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request external-request You asked, we did shell-zsh
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants