<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
      <title>parameters — Orx: Portable Game Engine</title>
      <link>https://forum.orx-project.org/index.php?p=/</link>
      <pubDate>Mon, 06 Apr 2026 22:20:00 +0000</pubDate>
          <description>parameters — Orx: Portable Game Engine</description>
    <language>en</language>
    <atom:link href="https://forum.orx-project.org/index.php?p=/discussions/tagged/parameters/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>orxParam questions</title>
        <link>https://forum.orx-project.org/index.php?p=/discussion/9096/orxparam-questions</link>
        <pubDate>Tue, 02 Jun 2020 10:57:10 +0000</pubDate>
        <category>General discussions</category>
        <dc:creator>sausage</dc:creator>
        <guid isPermaLink="false">9096@/index.php?p=/discussions</guid>
        <description><![CDATA[<p>Just a few short questions relating to the orxParam module of Orx:</p>

<ol>
<li>All orx compiled programs accept the following parameters:</li>
</ol>

<p>-c        --config<br />
-v        --version<br />
-h        --help</p>

<p>If I wanted to re-purpose the -c parameter for something else, how could I do that? The tutorial here <a href="https://orx-project.org/wiki/en/tutorials/system/commandline_parameters" rel="nofollow">https://orx-project.org/wiki/en/tutorials/system/commandline_parameters</a> only works for everything except the above default parameters.</p>

<ol start="2">
<li><p>If I wanted to test for other optional arguments passed, but not create handlers for them? How would I go about this. I assume all params are set using orxParam_SetArgs(argc, argv), but how could I access them? For example, if I wanted to test if the user specified an -x argument but I have no handler set up for it, how is that done? Standard c args tests perhaps?</p></li>
<li><p>Last case, if I have a handler for a parameter, and the argument is passed, the handler will execute. That much is good. But how did I test if the user did not pass the argument. Standard c testing code here as well?</p></li>
</ol>

<p>It's very likely all my use cases above are intertwined. I can work around them but it would be cleaner if I can understand how to access anything collected by the orxParam module.</p>
]]>
        </description>
    </item>
   <language>en</language>
   </channel>
</rss>
