Ignore:
Timestamp:
Dec 10, 2010 9:00:16 AM (13 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master
Children:
913dc7a
Parents:
fbee30a
git-author:
Ted Faber <faber@…> (12/09/10 11:41:45)
git-committer:
Ted Faber <faber@…> (12/10/10 09:00:16)
Message:

allow command line progams to expand tildes. Added a class derived from OptionParser? to make that easily available.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_terminate.py

    rfbee30a r62f3dd9  
    1212        client_opts.__init__(self)
    1313        self.add_option("--experiment_cert", dest="exp_certfile",
    14                 type="string", help="experiment certificate file")
     14                action='callback', callback=self.expand_file, type='str',
     15                help="experiment certificate file")
    1516        self.add_option("--experiment_name", dest="exp_name",
    1617                type="string", help="human readable experiment name")
     
    1920                help="Force termination if experiment is in strange state")
    2021        self.add_option("--logfile", dest="logfile", default=None,
     22                action='callback', callback=self.expand_file, type='str',
    2123                help="File to write log to")
    2224        self.add_option("--print_log", dest="print_log", default=False,
Note: See TracChangeset for help on using the changeset viewer.