Commit 73a6a738 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent 578951a4
......@@ -59,4 +59,17 @@ def get_nb_string(value, length=6):
zeros += "0";
s_value = zeros + s_value
return s_value
\ No newline at end of file
def get_argument_pattern( list, start_number=1 ):
"""
Return the argument pattern for arguments files. Ex : with 3 element in list this function returns ["${1} ${2} ${3}", 4].
@param list : the list of files.
@param start_number : number of the first argument.
"""
arg_pattern = ""
next_number = start_number
for elt in list:
arg_pattern += ' ${' + str(next_number) + '}'
next_number += 1
return [arg_pattern, next_number]
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment