Show Table of Contents
function::cmdline_args
Name
function::cmdline_args — Fetch command line arguments from current process
Synopsis
function cmdline_args:string(n:long,m:long,delim:string)
Arguments
n- First argument to get (zero is the command itself)
m- Last argument to get (or minus one for all arguments after n)
delim- String to use to delimit arguments when more than one.
General Syntax
cmdline_args:string(n:long, m:long, delim:string)
Description
Returns arguments from the current process starting with argument number n, up to argument m. If there are less than n arguments, or the arguments cannot be retrieved from the current process, the empty string is returned. If m is smaller than n then all arguments starting from argument n are returned. Argument zero is traditionally the command itself.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.