# HG changeset patch # User John W. Eaton # Date 1221458814 -7200 # Node ID e76649d19a1aadd3984674f94e54f2e5f69fefc9 # Parent 7b8f1b431b037edfdc264db4f8859b12cc8b3f12 octave.cc (octave_main): make all command-line arguments available to startup scripts diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-09-10 John W. Eaton + + * octave.cc (octave_main): Make all command-line arguments + available to startup scripts and PKG_ADD files. + 2008-05-20 Kim Hansen * load-path.cc (load_path::do_initialize): diff --git a/src/octave.cc b/src/octave.cc --- a/src/octave.cc +++ b/src/octave.cc @@ -750,6 +750,11 @@ initialize_version_info (); + // Make all command-line arguments available to startup files, + // including PKG_ADD files. + + intern_argv (argc, argv); + load_path::initialize (set_initial_path); execute_startup_files (); @@ -778,10 +783,6 @@ if (! code_to_eval.empty ()) { - // We probably want all the args for an --eval option. - - intern_argv (argc, argv); - int parse_status = execute_eval_option_code (code_to_eval); if (! (persist || remaining_args > 0))