pass named parameters to python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Leslie

    #1

    pass named parameters to python

    I am converting a korn shell script to python and want to be able to
    pass named arguments into python e.g -firstparam -secondparam

    Can this be done?
  • Duncan Booth

    #2
    Re: pass named parameters to python

    John Leslie wrote:
    [color=blue]
    > I am converting a korn shell script to python and want to be able to
    > pass named arguments into python e.g -firstparam -secondparam
    >
    > Can this be done?
    >[/color]

    See the module 'optparse'.

    Comment

    Working...