[te-code-users] Re: Default values for command options
Brought to you by:
atownley
|
From: Kevin R. <or...@gm...> - 2005-06-21 17:57:30
|
Hi Andrew, Thanks for the reply, I understand how you intended the default values to work much better now. I see that the way we have used arguments isn't compatible with this. The command my example comes from is called "website" and it manages aspects of a website directory. When called with the "-s" option, without a parameter, it reports status information for the current directory. If the "-s" option is specified with a parameter, it reports status information for the specified directory. I'm begining to suspect this approach to using arguments was wrong and in this case the directory parameter shouldn't be associated with this option. Rather, I should pick it up via CommandParser.getUnhandledArguments() and make the "-s" option a simple switch. Thanks for the help, Kevin |