Error with dwidenoise -extent option

Hi, Mrtrix experts,

My command line is:
dwidenoise -extent 5x5x5 ${path}/${name}/${name1}/AP/*.nii.gz AP_denoised.nii.gz

while the terminal warns me as:

dwidenoise: [ERROR] incomplete use of string "5x5x5" in conversion to type "i"
dwidenoise: [ERROR] can't parse integer sequence specifier "5x5x5"

What’s wrong with my command line? Does it necessary to provide the -extent option?

Try -extent 5,5,5 (or just -extent 5). This is how MRtrix commands expect list of numbers to be provided.

Thanks for your reply!