<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Arguments Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/arguments/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/arguments/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 13 Apr 2022 16:30:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Define Function expression in JavaScript</title>
		<link>https://www.scmgalaxy.com/tutorials/define-function-expression-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/define-function-expression-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Sat, 31 Jul 2021 12:34:09 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Arguments]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Variables]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7237</guid>

					<description><![CDATA[<p>Function Expression When we create a function and assign it to a variable, known as a function expression. Note: &#8211; [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/define-function-expression-in-javascript/">Define Function expression in JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Function Expression</h2>



<p class="wp-block-paragraph">When we create a function and assign it to a variable, known as a function expression.</p>



<script src="https://gist.github.com/vijaypk376/46c4a99f1f13703e3dbd8184a2f42ec3.js"></script>



<p class="wp-block-paragraph">Note: &#8211;</p>



<ul class="wp-block-list"><li><strong>You can‟t call function expression before the function definition.</strong></li><li><strong>Function expressions in JavaScript are not hoisted, unlike function declarations.</strong></li></ul>



<h2 class="wp-block-heading">Anonymous Functions</h2>



<p class="wp-block-paragraph">Anonymous functions allow the creation of functions that have no specified name.</p>



<ul class="wp-block-list"><li><strong>Can be stored in a Variable</strong></li><li><strong>Can be Returned in a Function</strong></li><li><strong>Can be pass in a Function</strong></li></ul>



<script src="https://gist.github.com/vijaypk376/20232b8266da50f6efc4ae61268160aa.js"></script>



<h2 class="wp-block-heading">Store Anonymous Function in Variable</h2>



<script src="https://gist.github.com/vijaypk376/1df0d78e0c6c098d87780a117c1a9460.js"></script>



<h2 class="wp-block-heading">Passing Anonymous Function as Argument</h2>



<script src="https://gist.github.com/vijaypk376/ab7b9a35baebd661acb57b3bcb4d2b83.js"></script>



<h2 class="wp-block-heading">Returning Anonymous Function</h2>



<script src="https://gist.github.com/vijaypk376/0146f165d15c123704a7e7a8d904ec71.js"></script>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/define-function-expression-in-javascript/">Define Function expression in JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/define-function-expression-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How do I use a default parameter in JavaScript?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-do-i-use-a-default-parameter-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-do-i-use-a-default-parameter-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Fri, 30 Jul 2021 13:22:43 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Arguments]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Parameters]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7213</guid>

					<description><![CDATA[<p>Default Parameter Syntax: &#8211;function function_name (para1, para2=“value”, para3) // problem undefined{Block of statement;}Syntax: &#8211;function function_name (para1, para2=“value1”, para3=“value2”){Block of statement;} [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-do-i-use-a-default-parameter-in-javascript/">How do I use a default parameter in JavaScript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Default Parameter</h2>



<p class="wp-block-paragraph">Syntax: &#8211;<br>function function_name (para1, para2=“value”, para3) // problem undefined<br>{<br>Block of statement;<br>}<br>Syntax: &#8211;<br>function function_name (para1, para2=“value1”, para3=“value2”)<br>{<br>Block of statement;<br>}</p>



<script src="https://gist.github.com/vijaypk376/b968e96a77da29c151b878bb1229da63.js"></script>



<p class="wp-block-paragraph">JavaScript also allows the use of arrays and null as default values.</p>



<script src="https://gist.github.com/vijaypk376/e477e0661b7216c9e8291c7ae6755cc1.js"></script>



<script src="https://gist.github.com/vijaypk376/93dd055d0136a75a9cdb5e41507f09d9.js"></script>



<h2 class="wp-block-heading">Rest Parameters</h2>



<p class="wp-block-paragraph">The rest parameter allows representing an indefinite number of arguments as an array.</p>



<p class="wp-block-paragraph">Syntax: &#8211;<br>function function_name (…args)<br>   {<br>      Block of statement;<br>   }</p>



<p class="wp-block-paragraph"><br>Syntax: &#8211;<br>function function_name (a, …args)<br>    {<br>      Block of statement;<br>   }</p>



<p class="wp-block-paragraph">The rest operator must be the last parameter to a function.</p>



<h2 class="wp-block-heading">Rest Vs Arguments</h2>



<p class="wp-block-paragraph">There are three main differences between the rest parameters and the arguments object:-</p>



<ul class="wp-block-list"><li>Rest parameters are only the ones that haven&#8217;t been given a separate name, while the arguments object contains all arguments passed to the function.</li><li>The arguments object is not a real array, while Rest Parameters are Array instances, meaning methods like sort, map, forEach or pop can be applied on it directly.</li><li>The arguments object has additional functionality specific to itself (like the callee property).</li></ul>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-do-i-use-a-default-parameter-in-javascript/">How do I use a default parameter in JavaScript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-do-i-use-a-default-parameter-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Write Function in JavaScript?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-write-function-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-write-function-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Fri, 30 Jul 2021 12:56:48 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Arguments]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[javascript function]]></category>
		<category><![CDATA[Parameters]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7198</guid>

					<description><![CDATA[<p>Function Function are subprograms which are used to compute a value or perform a task. Type of Function &#8211; Library [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-write-function-in-javascript/">How to Write Function in JavaScript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Function</h2>



<p class="wp-block-paragraph">Function are subprograms which are used to compute a value or perform a task.</p>



<h2 class="wp-block-heading"><strong>Type of Function</strong></h2>



<p class="wp-block-paragraph"><strong>&#8211;</strong> <strong>Library or Built-in functions </strong></p>



<p class="wp-block-paragraph">  Ex: &#8211; valueOf( ) , write( ), alert( ) etc</p>



<p class="wp-block-paragraph"><strong>&#8211; User-defined functions</strong></p>



<h2 class="wp-block-heading">Creating and Calling a Function</h2>



<p class="wp-block-paragraph"><strong>Creating a Function</strong></p>



<p class="wp-block-paragraph">Syntax: &#8211;</p>



<p class="wp-block-paragraph">function function_name( )<br>{<br>Block of statement;<br>}</p>



<script src="https://gist.github.com/vijaypk376/802abaf469d88a83f72f42f782c53508.js"></script>



<p class="wp-block-paragraph"><strong>Calling a Function</strong></p>



<p class="wp-block-paragraph">Syntax: &#8211;<br>function_name( );</p>



<p class="wp-block-paragraph">Ex: &#8211;<br>display( );</p>



<h2 class="wp-block-heading">Rules of <strong>Function</strong></h2>



<ul class="wp-block-list"><li>Function name only starts with a letter, an underscore ( _ ).</li><li>Function name cannot start with a number.</li><li>Do not use reserved keywords. e.g. else, if etc.</li><li>Function names are case-sensitive in JavaScript.</li></ul>



<h2 class="wp-block-heading">How Function Call Works</h2>



<p class="wp-block-paragraph">The code inside a function isn‟t executed until that function is called.</p>



<script src="https://gist.github.com/vijaypk376/44b9a36db3935a45075af60b432f6fe9.js"></script>



<h2 class="wp-block-heading">Function with Parameters</h2>



<p class="wp-block-paragraph">Syntax: &#8211;<br>function function_name (parameter1, parameter2, ….)<br>{<br>Block of statement;<br>}</p>



<script src="https://gist.github.com/vijaypk376/f4b2f252018704f3b391618c1447a6f4.js"></script>



<ul class="wp-block-list"><li>JavaScript function definitions do not specify data types for parameters.</li><li>JavaScript functions do not perform type checking on the passed arguments.</li><li>JavaScript functions do not check the number of arguments received.</li></ul>



<h2 class="wp-block-heading">Call Function with Parameter</h2>



<p class="wp-block-paragraph">Syntax: &#8211;<br>function function_name (para1, para2, ….)<br>{<br>Block of statement;<br>}<br>Syntax:-<br>function_name(argument1, argument2);</p>



<script src="https://gist.github.com/vijaypk376/b12dd07ada07e67e83d1408b2c282269.js"></script>



<h2 class="wp-block-heading">Function Argument Missing</h2>



<p class="wp-block-paragraph">If a function is called with missing arguments, the missing values are set to undefined.</p>



<script src="https://gist.github.com/vijaypk376/ec4fb9dc2ceafb3d375b5e894c345f29.js"></script>



<h2 class="wp-block-heading">Arguments Object</h2>



<p class="wp-block-paragraph">The arguments object contains an array of the arguments used when the function was called.<br>This object contains an entry for each argument passed to the function, the first entry&#8217;s index starting at 0. The argument&#8217;s object is not an Array. It is similar to an Array but does not have any Array properties except length.</p>



<script src="https://gist.github.com/vijaypk376/3db52f5e9f1a3facba70da8d707f7749.js"></script>



<h2 class="wp-block-heading">Many Function Arguments</h2>



<p class="wp-block-paragraph">If a function is called with too many arguments, these arguments can be reached using the arguments object which is a built-in.</p>



<script src="https://gist.github.com/vijaypk376/8633149b98995bd061ab2bf000d92ce8.js"></script>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-write-function-in-javascript/">How to Write Function in JavaScript?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-write-function-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Tutorials for PHP Function with Parameters or Arguments</title>
		<link>https://www.scmgalaxy.com/tutorials/tutorials-for-php-function-with-parameters-or-arguments/</link>
					<comments>https://www.scmgalaxy.com/tutorials/tutorials-for-php-function-with-parameters-or-arguments/#respond</comments>
		
		<dc:creator><![CDATA[Ashwani Kumar]]></dc:creator>
		<pubDate>Fri, 23 Jul 2021 13:51:49 +0000</pubDate>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Arguments]]></category>
		<category><![CDATA[Default Values for Function]]></category>
		<category><![CDATA[Default Values for Function parameter]]></category>
		<category><![CDATA[Functions with return values]]></category>
		<category><![CDATA[Parameter passing to Functions]]></category>
		<category><![CDATA[Parameters]]></category>
		<category><![CDATA[Parameters or Arguments]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[PHP Function]]></category>
		<category><![CDATA[PHP Function with Parameters or Arguments]]></category>
		<category><![CDATA[Setting Default Values for Function parameter]]></category>
		<category><![CDATA[Tutorials for PHP Function with Parameters or Arguments]]></category>
		<category><![CDATA[What]]></category>
		<category><![CDATA[What is Function with Parameters or Arguments]]></category>
		<category><![CDATA[Why]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7004</guid>

					<description><![CDATA[<p>What is Function with Parameters or Arguments? The information or variables included within the function&#8217;s parentheses are referred to as [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/tutorials-for-php-function-with-parameters-or-arguments/">Tutorials for PHP Function with Parameters or Arguments</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">What is <strong>Function with Parameters or Argument</strong>s?</h2>



<p class="wp-block-paragraph">The information or variables included within the function&#8217;s parentheses are referred to as parameters. These are used to keep track of values that can be used during runtime. The comma(,) operator allows the user to input as many arguments as he wants. These options are used to accept inputs during runtime. When transferring numbers, such as during a function call, arguments are used. A parameter is a container for parameters that are given to a function. A value supplied to a function is referred to as an argument. In layman&#8217;s terms, both parameter and statement have the same meaning. It&#8217;s crucial to keep in mind that each parameter must be accompanied with an argument.</p>



<div class="wp-block-image"><figure class="aligncenter"><img decoding="async" src="https://w3programmers.com/bangla/wp-content/uploads/2017/10/function-parameter-and-arguments.png" alt="PHP functions,Parameters and arguments"/></figure></div>



<h4 class="wp-block-heading">Syntex:-</h4>



<pre class="wp-block-code"><code>function function_name($first_parameter, $second_parameter) {
    executable code;
}</code></pre>



<p class="wp-block-paragraph"><strong>Example:-</strong> </p>



<script src="https://gist.github.com/AdarshAshwani/4ba710fd954a3ddba47a43187fe99596.js"></script>



<h3 class="wp-block-heading"><strong>Setting Default Values for Function parameter</strong>:-</h3>



<p class="wp-block-paragraph">In PHP, we may define default arguments for function parameters. If no argument is supplied for a parameter with a default value, PHP will call the function with the parameter&#8217;s default specified value.</p>



<script src="https://gist.github.com/AdarshAshwani/c3cab9557310f1bc5004aef9027e262d.js"></script>



<p class="wp-block-paragraph">The default value for the parameter $num in the previous example is 12; if no value is supplied for this parameter in a function call, the default value is used. It&#8217;s also required because the option $str has no default value.</p>



<h3 class="wp-block-heading">Functions with return values:-</h3>



<p class="wp-block-paragraph">Functions can also return values to the portion of the program where they were called. The value is returned to the program section from where it was named using the return keyword. It is possible to return any type of value, including arrays and objects. The return statement also marks the conclusion of the function, stops it from running, and returns the value.</p>



<script src="https://gist.github.com/AdarshAshwani/cbd50f7be8f29fd002eecc1c95a0b60e.js"></script>



<h3 class="wp-block-heading"><strong>Parameter passing to Functions</strong>:-</h3>



<p class="wp-block-paragraph">In PHP, there are two ways to pass an argument to a function.</p>



<p class="wp-block-paragraph"><strong>Pass by Value:–</strong> Moving by value changes the value of an argument within a function, while the original value outside the function stays unaffected. This means that a statement that is a duplicate of the original value is transmitted.</p>



<p class="wp-block-paragraph"><strong>Pass by Reference:</strong>– As statements are passed via proxy, the original value is transmitted. As a result, the starting value has changed. Using the ampersand symbol in pass by reference, we just transmit the value&#8217;s address, where it is kept (&amp;).</p>



<p class="wp-block-paragraph"><strong>Example:-</strong> </p>



<script src="https://gist.github.com/AdarshAshwani/6cd07cd85061dbb4184ed93a1d9fe044.js"></script>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/tutorials-for-php-function-with-parameters-or-arguments/">Tutorials for PHP Function with Parameters or Arguments</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/tutorials-for-php-function-with-parameters-or-arguments/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Understand Ant command line arguments with Examples</title>
		<link>https://www.scmgalaxy.com/tutorials/ant-command-line-arguments-2/</link>
					<comments>https://www.scmgalaxy.com/tutorials/ant-command-line-arguments-2/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 06 Oct 2009 11:36:10 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[ANT]]></category>
		<category><![CDATA[Ant command line arguments]]></category>
		<category><![CDATA[Ant command line arguments Examples]]></category>
		<category><![CDATA[Arguments]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[command line arguments in ANt]]></category>
		<category><![CDATA[command-line argument]]></category>
		<category><![CDATA[Examples]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[How to pass ant command line arguments]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Resource]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Understand]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2009/10/06/ant-command-line-arguments-2/</guid>

					<description><![CDATA[<p>Several tasks take arguments that will be passed to another process on the command line. To make it easier to [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ant-command-line-arguments-2/">Understand Ant command line arguments with Examples</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4073 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/10/ant-command-line-arguments.png" alt="ant-command-line-arguments" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/10/ant-command-line-arguments.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/10/ant-command-line-arguments-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p><strong>Several tasks take arguments that will be passed to another process on the command line. To make it easier to specify arguments that contain space characters, nested arg elements can be used.</strong></p>
<p><strong>value</strong> &#8211; a single command-line argument; can contain space characters.</p>
<p><strong>file </strong>&#8211; The name of a file as a single command-line argument; will be replaced with the absolute filename of the file.</p>
<p><strong>path</strong> &#8211; A string that will be treated as a path-like string as a single command-line argument; you can use ; or : as path separators and Ant will convert it to the platform&#8217;s local conventions.</p>
<p><strong>pathref</strong> &#8211; Reference to a path defined elsewhere. Ant will convert it to the platform&#8217;s local conventions.</p>
<p><strong>line</strong> &#8211; a space-delimited list of command-line arguments.</p>
<p>It is highly recommended to avoid the line version when possible. Ant will try to split the command line in a way similar to what a (Unix) shell would do, but may create something that is very different from what you expect under some circumstances.</p>
<p><strong>Examples</strong></p>
<p>&lt;arg value=&#8221;-l -a&#8221;/&gt;</p>
<p>is a single command-line argument containing a space character.</p>
<p>&lt;arg line=&#8221;-l -a&#8221;/&gt;</p>
<p>represents two separate command-line arguments.</p>
<p>&lt;arg path=&#8221;/dir;/dir2:\dir3&#8243;/&gt;</p>
<p>is a single command-line argument with the value \dir;\dir2;\dir3 on DOS-based systems and /dir:/dir2:/dir3 on Unix-like systems.</p>
<p>Command-line Options Summary<br />
ant [options] [target [target2 [target3] &#8230;]]</p>
<table style="border-collapse: collapse; width: 310pt;" border="2" width="414" cellspacing="0" cellpadding="0">
<colgroup>
<col style="width: 74pt;" width="99" />
<col style="width: 236pt;" width="315" /></colgroup>
<tbody>
<tr style="height: 15.75pt;">
<td class="xl65" style="height: 15.75pt; width: 74pt;" width="99" height="21"><strong>Options:</strong></td>
<td class="xl66" style="border-left: medium none; width: 236pt;" width="315"></td>
</tr>
<tr style="height: 15.75pt;">
<td class="xl67" style="border-top: medium none; height: 15.75pt; padding-bottom: 0in; padding-top: 0in;" height="21">-help, -h</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; padding-bottom: 0in; padding-top: 0in;">Displays help information describing the Ant command and its options</td>
</tr>
<tr style="height: 15.75pt;">
<td class="xl67" style="border-top: medium none; height: 15.75pt; padding-bottom: 0in; padding-top: 0in;" height="21">-projecthelp, -p</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; padding-bottom: 0in; padding-top: 0in;">Print project help information</td>
</tr>
<tr style="height: 15.75pt;">
<td class="xl67" style="border-top: medium none; height: 15.75pt; padding-bottom: 0in; padding-top: 0in;" height="21">-version</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; padding-bottom: 0in; padding-top: 0in;">Print the version information and exit</td>
</tr>
<tr style="height: 15.75pt;">
<td class="xl67" style="border-top: medium none; height: 15.75pt; padding-bottom: 0in; padding-top: 0in;" height="21">-diagnostics</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; padding-bottom: 0in; padding-top: 0in;">Print information that might be helpful to diagnose or report problems.</td>
</tr>
<tr style="height: 15.75pt;">
<td class="xl67" style="border-top: medium none; height: 15.75pt; padding-bottom: 0in; padding-top: 0in;" height="21">-quiet, -q</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; padding-bottom: 0in; padding-top: 0in;">Suppresses most messages not originated by an echo task in the buildfile</td>
</tr>
<tr style="height: 15.75pt;">
<td class="xl67" style="border-top: medium none; height: 15.75pt; padding-bottom: 0in; padding-top: 0in;" height="21">-verbose, -v</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; padding-bottom: 0in; padding-top: 0in;">Displays detailed messages for every operation during a build.</td>
</tr>
<tr style="height: 15.75pt;">
<td class="xl67" style="border-top: medium none; height: 15.75pt; padding-bottom: 0in; padding-top: 0in;" height="21">-debug, -d</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; padding-bottom: 0in; padding-top: 0in;">Print debugging information</td>
</tr>
<tr style="height: 15.75pt;">
<td class="xl67" style="border-top: medium none; height: 15.75pt; padding-bottom: 0in; padding-top: 0in;" height="21">-emacs, -e</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; padding-bottom: 0in; padding-top: 0in;">Produce logging information without adornments</td>
</tr>
<tr style="height: 15.75pt;">
<td class="xl67" style="border-top: medium none; height: 15.75pt; padding-bottom: 0in; padding-top: 0in;" height="21">-lib &lt;path&gt;</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; padding-bottom: 0in; padding-top: 0in;">Specifies a path to search for jars and classes</td>
</tr>
<tr style="height: 15.75pt;">
<td class="xl67" style="border-top: medium none; height: 15.75pt; padding-bottom: 0in; padding-top: 0in;" height="21">-logfile &lt;file&gt;</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; padding-bottom: 0in; padding-top: 0in;">Use given file for log</td>
</tr>
<tr style="height: 15.75pt;">
<td class="xl67" style="border-top: medium none; height: 15.75pt; padding-bottom: 0in; padding-top: 0in;" height="21">-l &lt;file&gt;</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; padding-bottom: 0in; padding-top: 0in;">Use given file for log</td>
</tr>
<tr style="height: 15.75pt;">
<td class="xl67" style="border-top: medium none; height: 15.75pt; padding-bottom: 0in; padding-top: 0in;" height="21">-logger &lt;classname&gt;</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; padding-bottom: 0in; padding-top: 0in;">Specifies a class to handle Ant logging.</td>
</tr>
<tr style="height: 15.75pt;">
<td class="xl67" style="border-top: medium none; height: 15.75pt; padding-bottom: 0in; padding-top: 0in;" height="21">-listener &lt;classname&gt;</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; padding-bottom: 0in; padding-top: 0in;">Add an instance of class as a project listener</td>
</tr>
<tr style="height: 15.75pt;">
<td class="xl67" style="border-top: medium none; height: 15.75pt; padding-bottom: 0in; padding-top: 0in;" height="21">-noinput</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; padding-bottom: 0in; padding-top: 0in;">Do not allow interactive input</td>
</tr>
<tr style="height: 15.75pt;">
<td class="xl67" style="border-top: medium none; height: 15.75pt; padding-bottom: 0in; padding-top: 0in;" height="21">-buildfile &lt;file&gt;</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; padding-bottom: 0in; padding-top: 0in;">Use given buildfile</td>
</tr>
<tr style="height: 15.75pt;">
<td class="xl67" style="border-top: medium none; height: 15.75pt; padding-bottom: 0in; padding-top: 0in;" height="21">-file &lt;file&gt;</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; padding-bottom: 0in; padding-top: 0in;">Use given buildfile</td>
</tr>
<tr style="height: 15.75pt;">
<td class="xl67" style="border-top: medium none; height: 15.75pt; padding-bottom: 0in; padding-top: 0in;" height="21">-f &lt;file&gt;</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; padding-bottom: 0in; padding-top: 0in;">Use given buildfile</td>
</tr>
<tr style="height: 15.75pt;">
<td class="xl67" style="border-top: medium none; height: 15.75pt; padding-bottom: 0in; padding-top: 0in;" height="21">-D&lt;property&gt;=&lt;value&gt;</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; padding-bottom: 0in; padding-top: 0in;">Defines a property name-value pair on the command line.</td>
</tr>
<tr style="height: 15.75pt;">
<td class="xl67" style="border-top: medium none; height: 15.75pt; padding-bottom: 0in; padding-top: 0in;" height="21">-keep-going, -k</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; padding-bottom: 0in; padding-top: 0in;">execute all targets that do not depend on failed target(s)</td>
</tr>
<tr style="height: 15.75pt;">
<td class="xl67" style="border-top: medium none; height: 15.75pt; padding-bottom: 0in; padding-top: 0in;" height="21">-propertyfile &lt;name&gt;</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; padding-bottom: 0in; padding-top: 0in;">load all properties from file with -D properties taking precedence</td>
</tr>
<tr style="height: 15.75pt;">
<td class="xl67" style="border-top: medium none; height: 15.75pt; padding-bottom: 0in; padding-top: 0in;" height="21">-inputhandler &lt;class&gt;</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; padding-bottom: 0in; padding-top: 0in;">the class which will handle input requests</td>
</tr>
<tr style="height: 15.75pt;">
<td class="xl67" style="border-top: medium none; height: 15.75pt; padding-bottom: 0in; padding-top: 0in;" height="21">-find &lt;file&gt;</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; padding-bottom: 0in; padding-top: 0in;">Search for buildfile towards the root of the filesystem and use it</td>
</tr>
</tbody>
</table>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ant-command-line-arguments-2/">Understand Ant command line arguments with Examples</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/ant-command-line-arguments-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ant command line arguments &#8211; Examples &#8211; Summary</title>
		<link>https://www.scmgalaxy.com/tutorials/ant-command-line-arguments/</link>
					<comments>https://www.scmgalaxy.com/tutorials/ant-command-line-arguments/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sat, 20 Jun 2009 04:04:31 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[ANT]]></category>
		<category><![CDATA[Ant command line arguments]]></category>
		<category><![CDATA[Ant command line arguments Examples]]></category>
		<category><![CDATA[Arguments]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[command line arguments in ANt]]></category>
		<category><![CDATA[command-line argument]]></category>
		<category><![CDATA[Examples]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[How to pass ant command line arguments]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Resource]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2009/06/20/ant-command-line-arguments/</guid>

					<description><![CDATA[<p>Ant command line arguments Several tasks take arguments that will be passed to another process on the command line. To [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ant-command-line-arguments/">Ant command line arguments &#8211; Examples &#8211; Summary</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="alignnone size-full wp-image-4015 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/06/ant-command-line-arguments.png" alt="ant-command-line-arguments" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/06/ant-command-line-arguments.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/06/ant-command-line-arguments-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<table border="0" width="100%">
<tbody>
<tr>
<td class="HEADING"><strong>Ant command line arguments</strong></td>
</tr>
<tr>
<td class="HEADING_BODY">Several tasks take arguments that will be passed to another process on the command line. To make it easier to specify arguments that contain space characters, nested arg elements can be used.</p>
<p><strong><em>value</em></strong> &#8211; a single command-line argument; can contain space characters.<br />
<strong><em>file</em></strong><em> &#8211; </em>The name of a file as a single command-line argument; will be replaced with the absolute filename of the file.<br />
<strong><em>path</em></strong><em> &#8211; </em>A string that will be treated as a path-like string as a single command-line argument; you can use ; or : as path separators and Ant will convert it to the platform&#8217;s local conventions.<br />
<strong><em>pathref</em></strong><em> &#8211;</em> Reference to a path defined elsewhere. Ant will convert it to the platform&#8217;s local conventions.<br />
<strong><em>line </em></strong><em>&#8211; </em>a space-delimited list of command-line arguments.</p>
<p>It is highly recommended to avoid the line version when possible. Ant will try to split the command line in a way similar to what a (Unix) shell would do, but may create something that is very different from what you expect under some circumstances.</td>
</tr>
<tr>
<td class="HEADING"><strong>Examples</strong></td>
</tr>
<tr>
<td class="HEADING_BODY">&lt;arg value=&#8221;-l -a&#8221;/&gt;<br />
is a single command-line argument containing a space character.<br />
&lt;arg line=&#8221;-l -a&#8221;/&gt;<br />
represents two separate command-line arguments.<br />
&lt;arg path=&#8221;/dir;/dir2:\dir3&#8243;/&gt;<br />
is a single command-line argument with the value \dir;\dir2;\dir3 on DOS-based systems and /dir:/dir2:/dir3 on Unix-like systems.</td>
</tr>
<tr>
<td class="HEADING"><strong>Command-line Options Summary</strong></td>
</tr>
<tr>
<td class="HEADING_BODY">ant [options] [target [target2 [target3] &#8230;]]</p>
<p>Options:</p>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>-help, -h</td>
<td>Displays help information describing the Ant command and its options</td>
</tr>
<tr>
<td>-projecthelp, -p</td>
<td>Print project help information</td>
</tr>
<tr>
<td>-version</td>
<td>Print the version information and exit</td>
</tr>
<tr>
<td>-diagnostics</td>
<td>Print information that might be helpful to diagnose or report problems.</td>
</tr>
<tr>
<td>-quiet, -q</td>
<td>Suppresses most messages not originated by an echo task in the buildfile</td>
</tr>
<tr>
<td>-verbose, -v</td>
<td>Displays detailed messages for every operation during a build.</td>
</tr>
<tr>
<td>-debug, -d</td>
<td>Print debugging information</td>
</tr>
<tr>
<td>-emacs, -e</td>
<td>Produce logging information without adornments</td>
</tr>
<tr>
<td>-lib &lt;path&gt;</td>
<td>Specifies a path to search for jars and classes</td>
</tr>
<tr>
<td>-logfile &lt;file&gt;</td>
<td>Use given file for log</td>
</tr>
<tr>
<td>-l &lt;file&gt;</td>
<td>Use given file for log</td>
</tr>
<tr>
<td>-logger &lt;classname&gt;</td>
<td>Specifies a class to handle Ant logging.</td>
</tr>
<tr>
<td>-listener &lt;classname&gt;</td>
<td>Add an instance of class as a project listener</td>
</tr>
<tr>
<td>-noinput</td>
<td>Do not allow interactive input</td>
</tr>
<tr>
<td>-buildfile &lt;file&gt;</td>
<td>Use given buildfile</td>
</tr>
<tr>
<td>-file &lt;file&gt;</td>
<td>Use given buildfile</td>
</tr>
<tr>
<td>-f &lt;file&gt;</td>
<td>Use given buildfile</td>
</tr>
<tr>
<td>-D&lt;property&gt;=&lt;value&gt;</td>
<td>Defines a property name-value pair on the command line.</td>
</tr>
<tr>
<td>-keep-going, -k</td>
<td>execute all targets that do not depend on failed target(s)</td>
</tr>
<tr>
<td>-propertyfile &lt;name&gt;</td>
<td>load all properties from file with -D properties taking precedence</td>
</tr>
<tr>
<td>-inputhandler &lt;class&gt;</td>
<td>the class which will handle input requests</td>
</tr>
<tr>
<td>-find &lt;file&gt;</td>
<td>Search for buildfile towards the root of the filesystem and use it</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="HEADING_BODY"></td>
</tr>
</tbody>
</table>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ant-command-line-arguments/">Ant command line arguments &#8211; Examples &#8211; Summary</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/ant-command-line-arguments/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
