Any ideas on flags!

Is there a way for me to know what querryable options a command has. help will get me all the flags but i cant know in advance what they are. Problem is that it creates a uncatchable error to querry for those flags in my particuar isntace. Wich kindoff defeats using catchQuiet.

As it would be very nice to make my script without using a list for all of theese things in advance thatway even if they updated things for the flags and/or added commands in the future it would work fine.

Any takes. Im currently looking into api to circumvenyt the problem, specificaly MArgDataBase and MArgParser but would be nice not to have to plug this (thatway i could eventualy share it).

PS even the api seems a dead end.

weird, I posted to this several days ago, but my post is no longer here. Anyway, in a nutshell, you can use the help command to spit out all the flags a command has, then tokenize that list to get an array of the individual flags. Hope that helps.

yes thats what ive done... iterate thru all the flagsin help. But the problem is that a) you cant knowthe return tyoe wich is no biggie. But the true problem is that not all attrubutes are querryable and if you sak for a flag thats not querryable maya wll not nessecerily return realy nicely. meaning maya will throw a unrecoverable error, even wuhth catch.