| Ticket UUID: | 2dce7b748ad2cee72f0e93ea21e8967e8af4247c | |||
| Title: | cmdline: docs on getting the remainder of argv after the last option missing | |||
| Type: | Bug | Version: | 1.5 | |
| Submitter: | anonymous | Created on: | 2020-11-07 15:18:19 | |
| Subsystem: | cmdline | Assigned To: | aku | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2021-03-02 21:16:32 | |
| Resolution: | Fixed | Closed By: | aku | |
| Closed on: | 2021-03-02 21:16:32 | |||
| Description: |
[06:08] < ente> hi, I'm trying to use cmdline to parse command line options [06:09] < ente> is there any way to get the remainder of the arguments after the flags/options? [06:11] < ente> I use it according to the docs, which makes no mention of this, but I feel like a sensible option parser would give me that kind of output [06:12] < ente> I figured maybe someone here knows something I don't [06:13] < RhodiumToad> it should modify the argv variable that you pass into it, so that what remains in that var is the remainder This behaviour isn't mentioned in the code example section nor in the documentation for cmdline::getoptions. Works for me though, now that I know about it. :) | |||
| User Comments: |
aku added on 2021-03-02 21:16:32:
Fixed with commit [6dd76779dd]. Copied the documentation about the argv variable from `getopt` over to `getoption`. Further added a comment to the example. | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki