#13 command line precedence over optionfile?

open
nobody
5
2006-10-06
2006-10-06
Anonymous
No

Rather than the -optionfile <file> only being used to contain more options, I would like it to also be used to contain default options that can be overridden by the switches on the command line.

Thanks,
-jack

Discussion

  • Chip

    Chip - 2006-11-06

    Logged In: YES
    user_id=800692

    But I have to parse the command line before I can find the
    -of option. I don't know if I can reliably parse the
    command line for the -of option as a priority task, but I
    will check.

    Chip

     
  • Dave Cantor

    Dave Cantor - 2006-11-22

    Logged In: YES
    user_id=1647454
    Originator: NO

    Or better yet (IMAO), put more options into the registry, and continue to allow command file options to override the registry entries.

     
  • Nobody/Anonymous

    Logged In: NO

    The source code says that command line options will override anything you put into an options file.

    Chip

     
  • Jack Wilson

    Jack Wilson - 2006-12-13

    Logged In: YES
    user_id=1667087
    Originator: NO

    Let me explain why I submitted this request- I have an options file with the -to <recipient> and -server <addr>. Sometimes, I want to override the recipient. But, when I add a -to <diffrcpt> on the command line, I get "-t/-to can not be used with -tf. Aborting.". This is from Blat 2.6.1.

    As for the comment about the registry- in my case, I'm using a single options file for common settings that are used by scripts running on various servers. I'd rather not use the registry as that would require more effort when those settings change.

    -jack

     
  • Jack Wilson

    Jack Wilson - 2007-01-01

    Logged In: YES
    user_id=1667087
    Originator: NO

    Yes, that works. It's just what I need!

    It even gives me this warning, (which is great):
    Warning: -t/-to is being used with -tf, or another -t/to.
    Previous values will be ignored.

    When do you expect this version to be released?

    Thanks,
    -jack

     
  • Chip

    Chip - 2007-01-06

    Logged In: YES
    user_id=800692
    Originator: NO

    I hope to have it released this weekend. Thanks for the feedback.

    --
    Chip

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks