Skip to content

Commit fb07c67

Browse files
committed
update line start and end args 1 base
1 parent 19b8ce4 commit fb07c67

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/job.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,9 @@ def jobshells(self, start=0, end=None):
293293
jobs = []
294294
with open(self._path) as fi:
295295
for n, line in enumerate(fi):
296-
if n < start:
296+
if n < start-1:
297297
continue
298-
elif end is not None and n > end:
298+
elif end is not None and n > end-1:
299299
continue
300300
line = line.strip().strip("&")
301301
if line.startswith("#"):

src/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def runsgeArgparser():
182182
parser.add_argument("-n", "--num", type=int,
183183
help="the max job number runing at the same time. default: all in your job file", metavar="<int>")
184184
parser.add_argument("-s", "--startline", type=int,
185-
help="which line number(0-base) be used for the first job tesk. default: 0", metavar="<int>", default=0)
185+
help="which line number(1-base) be used for the first job tesk. default: 1", metavar="<int>", default=1)
186186
parser.add_argument("-e", "--endline", type=int,
187187
help="which line number (include) be used for the last job tesk. default: all in your job file", metavar="<int>")
188188
parser.add_argument("-g", "--groups", type=int, default=1,

0 commit comments

Comments
 (0)