Re: coding an Application in perl
Chapman Flack <[email protected]>
| Newsgroups | gmane.comp.archivers.amanda.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I notice that the new() in Application.swg sets a list of
known_commands, and it is not quite the same as in Operations
on the wiki:
Application::new Operations
---------------- ----------
backup backup
discover
estimate estimate
index index # doc says unimplemented
print # doc says unimplemented
restore restore
selfcheck selfcheck
support support
validate validate
I'm working on writing an abstract base class that should sort of
know the list of subcommands (at the time of parsing the command
line, so before Application::new() can be called), so I guess it
needs its own copy of the list. Maybe I should just include all
the entries from both lists? Will 'discover' ever be a thing? Or
is that an old idea that should be removed from the list?
Thanks,
-Chap