MantisBT - JANA
View Issue Details
0000420JANAFeature Requestpublic2014-11-10 10:142015-06-05 10:50
davidl 
davidl 
normalminorN/A
resolvedfixed 
0000420: add --listconfig more useful
The --dumpconfig option is somewhat limited in usefulness to find out what parameters exist since it needs to have an event source to run and most factories need to be activated in order to register their parameters. A "--listconfig" option could be used to activate all factories and dump the resulting list of all parameters to the screen in a way similar to --dumpconfig.

One could imagine two default behaviors:

1.) If no JEventProcessors are registered and no AUTOACTIVATE factories exist, then try activating all factories in order to get a complete list

2.) If at least one JEventProcessor exists or an AUTOACTIVATE factory is specified, then only print parameters registered via those.

This has the disadvantage of suppressing parameters from being registered/printed if something is *added* to the command line.

Perhaps one wants both a "--listconfig" and a "--listallconfig" option so that both behaviors are available and the user selects which they want(??)
No tags attached.
has duplicate 0000448resolved davidl Easier way to print configuration parameters. 
Issue History
2014-11-10 10:14davidlNew Issue
2014-12-03 06:21davidlStatusnew => assigned
2014-12-03 06:21davidlAssigned To => davidl
2015-06-05 10:49davidlNote Added: 0000636
2015-06-05 10:49davidlStatusassigned => resolved
2015-06-05 10:49davidlResolutionopen => fixed
2015-06-05 10:50davidlRelationship addedhas duplicate 0000448

Notes
(0000636)
davidl   
2015-06-05 10:49   
This was implemented in revision 2331 and will appear in JANA 0.7.3.

It was not implemented exactly as described. Only a --listconfig options exists and it always automatically activates all factories. It also replaces the source source list with a dummy one and forces the use of the JEventSource_NULL source type with 1 thread and 1 event. This allows one to type the following to get a complete list:

hd_ana --listconfig