Issue 4642: optparse - dosn't distinguish between '--option' and '-option' (original) (raw)
Issue4642
Created on 2008-12-12 14:16 by kszawala, last changed 2022-04-11 14:56 by admin. This issue is now closed.
Messages (2) | ||
---|---|---|
msg77670 - (view) | Author: Krzysztof Szawala (kszawala) | Date: 2008-12-12 14:16 |
I am using optparse for command-line parameters parsing. To follow common naming convention I defined -d (minus followed by a single character option) and --debug (double minus followed by a word). It looks like optparse doesn't complain when -debug (single minus) is specified and morover it doesn't recognize it as --debug. I am using Python 2.5.2. Problem was observed on Linux but also occurs on Windows. | ||
msg77679 - (view) | Author: Mark Dickinson (mark.dickinson) * ![]() |
Date: 2008-12-12 17:29 |
Duplicate of issue #4640. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:56:42 | admin | set | github: 48892 |
2008-12-12 17:29:13 | mark.dickinson | set | status: open -> closedresolution: duplicatemessages: + nosy: + mark.dickinson |
2008-12-12 14:16:43 | kszawala | create |