My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 221: argpos for non-string arguments
1 person starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  ----
Type-Defect
Priority-Medium
Proj-CmdArgs


Sign in to add a comment
 
Reported by eric.kow, Sep 29, 2009
I realise this is already documented in the haddock, so I think of making
argpos work with non String arguments as a feature request.

What steps will reproduce the problem?
1. ./argpos-int Flag --i 3
2. ./argpos-int ArgPos 3

What is the expected output? What do you see instead?
I expect: ArgPos {i = 3}
I see: ArgPos {i = 0}

What version of the product are you using? On what operating system?
(Saying "latest" is fine, especially for Hoogle web search)
latest

Please provide any additional information below.
This is within on attempt to apply cmdargs to
http://www.mlesniak.com/haskell/gettings-things-done-in-haskell/

argpos-int.hs
319 bytes   Download
Comment 1 by ndmitchell, Oct 11, 2009
Certainly worth a think, I'll come back to it in a few days.
Status: Accepted
Labels: Proj-CmdArgs
Sign in to add a comment

Hosted by Google Code