Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
Add single letter option to arguments for eclipse and flow script
Browse files Browse the repository at this point in the history
  • Loading branch information
ManInFez committed Nov 18, 2019
1 parent 48f3002 commit 149b7f6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions python/res/fm/ecl/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
def run(config, argv):
parser = ArgumentParser()
parser.add_argument("ecl_case")
parser.add_argument("--version", dest="version", type=str)
parser.add_argument("--num-cpu", dest="num_cpu", type=int, default=1)
parser.add_argument("--ignore-errors", dest="ignore_errors", action="store_true")
parser.add_argument("-v", "--version", dest="version", type=str)
parser.add_argument("-n", "--num-cpu", dest="num_cpu", type=int, default=1)
parser.add_argument("-i", "--ignore-errors", dest="ignore_errors", action="store_true")

options = parser.parse_args(argv)

Expand Down
2 changes: 1 addition & 1 deletion share/ert/forward-models/old_style/ECLIPSE100
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ EXECUTABLE ../res/script/ecl100
DEFAULT <VERSION> version
DEFAULT <NUM_CPU> 1
DEFAULT <OPTS> ""
ARGLIST <ECLBASE> "--version=<VERSION>" "--num-cpu=<NUM_CPU>" <OPTS>
ARGLIST <ECLBASE> -v <VERSION> -n <NUM_CPU> <OPTS>
2 changes: 1 addition & 1 deletion share/ert/forward-models/old_style/ECLIPSE300
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ EXECUTABLE ../res/script/ecl300
DEFAULT <VERSION> version
DEFAULT <NUM_CPU> 1
DEFAULT <OPTS> ""
ARGLIST <ECLBASE> "--version=<VERSION>" "--num-cpu=<NUM_CPU>" <OPTS>
ARGLIST <ECLBASE> -v <VERSION> -n <NUM_CPU> <OPTS>

2 changes: 1 addition & 1 deletion share/ert/forward-models/old_style/FLOW
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ EXECUTABLE ../res/script/flow
DEFAULT <VERSION> default
DEFAULT <NUM_CPU> 1
DEFAULT <OPTS> ""
ARGLIST <ECLBASE> "--version=<VERSION>" "--num-cpu=<NUM_CPU>" <OPTS>
ARGLIST <ECLBASE> -v <VERSION> -n <NUM_CPU> <OPTS>

0 comments on commit 149b7f6

Please sign in to comment.