Bug 117991 - I cannot understand poptGetArgs
I cannot understand poptGetArgs
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: popt (Show other bugs)
9
All Linux
medium Severity low
: ---
: ---
Assigned To: Jeff Johnson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-03-10 15:42 EST by Stephane Bortzmeyer
Modified: 2007-04-18 13:04 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-03-10 16:39:55 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
A simple test case (1.90 KB, text/plain)
2004-03-10 15:43 EST, Stephane Bortzmeyer
no flags Details

  None (edit)
Description Stephane Bortzmeyer 2004-03-10 15:42:41 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0)
Gecko/20020623 Debian/1.0.0-0.woody.1

Description of problem:

Hello,

I try to write a C program which uses popt. If it finds a given option
(-m in 
the example I send you), it should stop processing for a future pass
of popt 
(you see why I cannot use getopt). From the man page, I thought that 
poptGetArgs shoudl give me the leftover arguments but it always send NULL.

Any idea? 



Version-Release number of selected component (if applicable):
1.6 or 1.7

How reproducible:
Always

Steps to Reproduce:
1.gcc -o test-popt test-popt.c -lpopt
2../test-popt -v -m foobar -r -u
3.
    

Actual Results:  The assertion fails.


Expected Results:  The remaining args, "-r -u".


Additional info:
Comment 1 Stephane Bortzmeyer 2004-03-10 15:43:44 EST
Created attachment 98438 [details]
A simple test case
Comment 2 Jeff Johnson 2004-03-10 16:39:55 EST
Look at the programs run by "make check" for examples.

Note You need to log in before you can comment on or make changes to this bug.