| libcfg+ - Viewing Bug Advanced Details | [ Go Back ] | ||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 88 | library core | feature | always | 2003-04-24 16:28 | 2003-04-25 00:38 |
|
|
|||||
| Reporter: | rajo | Platform: | |||
| Assigned To: | rajo | OS: | |||
| Priority: | normal | Version: | |||
| Status: | resolved | Product Version: | |||
| Product Build: | Resolution: | not a bug | |||
| Projection: | none | Duplicate ID: | |||
| ETA: | none | ||||
|
|
|||||
| Summary: | can't mix multiple CFG_LINE_LONG_OPTION_PREFIXes | ||||
| Description: |
Considering this part of code: <pre> struct cfg_option options[] = { { "help", 'h', NULL, CFG_BOOL, (void *) &help, 0 }, CFG_END_OF_LIST } cfg_clear_property(con, CFG_LINE_LONG_OPTION_PREFIX); cfg_add_properties(con, CFG_LINE_LONG_OPTION_PREFIX, "--", "@@", CFG_EOT); </pre> In other words:I will support "./program --help" and "./program @@help" in my program. It seems to be impossible use both prefixes at one time. |
||||
| Steps To Reproduce: | |||||
| Additional Information / Solution: |
I will use this behaviour in my program (Monte Carlo simulation of symetric charge-exchange collision -- diploma thesis). I will support: <pre> ./hotGas N=1e6 lambda=3e-7 time=10.0 help ./hotGas N=1e6 lambda=3e-7 time=10.0 --help ./hotGas help ./hotGas --help </pre> Source code of program is attached. |
||||
| Attached Files: | 0000088-hotGas.c.txt (22 KB) 1970-01-01 01:33 | ||||
| Bug Notes | ||||
|
|
||||
|
|
|||