[cs615asa] Question-HW1: extra credit
Jan Schaumann
jschauma at cs.stevens.edu
Fri Mar 27 14:30:52 EDT 2009
Chih-Yuan Lee <clee9 at stevens.edu> wrote:
> For the extra credit part of Question_1, I would like to make my
> program using like this:
>
> shc -f file_1 file_2 -h host1 host2 host3
This is very unconvential usage. Your program should always
accept hosts as specified, ie:
shc host1 host2 host3
You may chose to add functionality to read from a file, but that should
not change the normal use case. That is, you could do
shc -f file1 host1 host2 host3
in which case the tool would parse file1 and also operate on host1,
host2 and host3.
If you wish to allow multiple files to be given, it would have to be
shc -f file1 -f file2 host1 host2 host3
This is still somewhat uncommon, and I'd probably suggest to stipulate
that if the '-f' option is given, the tool expects there to be exactly
one file and any additional arguments would be errors (ie, if '-f' is
given, don't read hostnames).
shc -f file1
-Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : https://lists.stevens.edu/cgi-bin/mailman/private/cs615asa/attachments/20090327/704d90bb/attachment.pgp
More information about the Cs615asa
mailing list