Bug 205849
| Summary: | popt should support required options | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Ben <bench> |
| Component: | popt | Assignee: | Robert Scheck <redhat-bugzilla> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | pmatilai |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | 1.12-3 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2007-08-23 23:17:26 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 249352 | ||
| Bug Blocks: | |||
|
Description
Ben
2006-09-08 23:44:18 UTC
What exactly are you asking for? It appears you want to see <...> rather than [...] in --help output, but I have no idea what output you are looking at. Can you supply an example? NEEDINFO woops, sorry. An example for, say, cp, might be: cp [-p] [-r] <src [src2 [src3]]> <dst> Basically, somehow denote that -p, -r, src2, and src3 are all optional options, but that src and dst are required "options". If I'm not seeing something, or if there's another way to denote that optional vs. required info, then please clue me in. popt provides 2 means to display help automagically, a short form with --usage, and a long form with --help. Unfortunately, there ios no means currently to mark an option as required, so there's no easy way to use <...> instead of [...] displaying options. The short form display with --usage is different than your example as well. You could choose to add "REQUIRED" string to the long description displayed with --help. I'll take a look this weekend at the feasibility of adding a POPT_ARGFLAG_REQURED marker so that the output display might use <...> and [...] somewhen. But please note that there are so many older versions of popt floating around that you're unlikely to see the change soon (assuming that I'm successful). User pnasrat's account has been closed Reassigning to owner after bugzilla made a mess, sorry about the noise... IMHO this problem is solved in 1.12-3, which should reach Rawhide soon. If not, please reopen this bug report. |