I forgot, in case anyone wan'ts to try it.
apache_log.data = new mode_config()
apache_log.data.options({ // The configuration settings constructor
format: ['combined', 'common'], // First index will be the default and
only allow these two items to be se (will be "undefined" for empty arrays)
directory: ['/var/log/apache2'], / Allow anything and make this the
default
filename: ['access.log']
}) // apache_log.data.settings() or apache_log.data._settings will contain
option defaults here
Two ways of validating -->
apache_log.data.settings({format: 'common', filename: 'accesslog.log'}) //
returns and configures
apache_log.data._settings.format = 'combined' // Sets and configures
On Sun, Oct 6, 2013 at 5:47 PM, Robert Steckroth
<[email protected]>wrote:
> Well, I got this made but it is looking like too much effort to be
> mainstream. Works nicely for my mods though.
> And ohh ya, it is super awsome whatnot ;)
> http://pastebin.ubuntu.com/6202565/
>
>
>
> On Tue, Oct 1, 2013 at 12:03 PM, Robert Steckroth <
> [email protected]> wrote:
>
>> Scratch that, using parseArgs() in my module causes all other usage to
>> break. My question was supposed to be: do I have to do this the hard way?
>>
>>
>> On Tue, Oct 1, 2013 at 11:58 AM, Robert Steckroth <
>> [email protected]> wrote:
>>
>>> I would like to use arparse with a module. This becomes a problem when
>>> a parseArgs() is global with the global process object. Does anyone have a
>>> solution as to how I might ignore any flags which I do not need in
>>> the process arguments. I would think that a simple "ignore undefined" like
>>> functionality would suffice but I could not find it in the docs.
>>>
>>> E.g. running parseArgs() in the module will use all flags and spit out a
>>> error if any were not defined but used in the main application.
>>>
>>>
>>>
>>> --
>>> <surgemcgee> Systems/Software Engineer
>>>
>>>
>>>
>>>
>>
>>
>> --
>> <surgemcgee> Systems/Software Engineer
>>
>>
>>
>>
>
>
> --
> <surgemcgee> Systems/Software Engineer
>
>
>
>
--
<surgemcgee> Systems/Software Engineer
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.