Return-Path: william@bourbon.usc.edu Delivery-Date: Sun Aug 31 08:56:30 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from bourbon.usc.edu (bourbon.usc.edu [128.125.9.75]) by merlot.usc.edu (8.14.1/8.14.1) with ESMTP id m7VFuU58024019 for ; Sun, 31 Aug 2008 08:56:30 -0700 Received: from bourbon.usc.edu (localhost.localdomain [127.0.0.1]) by bourbon.usc.edu (8.14.2/8.14.1) with ESMTP id m7VG3txZ029752 for ; Sun, 31 Aug 2008 09:03:55 -0700 Message-Id: <200808311603.m7VG3txZ029752@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: Doubt regarding commandline arguments Date: Sun, 31 Aug 2008 09:03:55 -0700 From: Bill Cheng Someone wrote: > The command for executing the client as given in the description is: > > client {-a|-f|-g} [-o offset] [-m] hostname:port string > > Can I fix the position of hostname:port as argv[3] and string as argv[4] > respectively ? No! Please do not change the spec or you may lose a lot of points! As I mentioned in class, we will grade according to the grading guidelines. If you code does not work for a particular test, you will not get the points for that test. We need to run the same tests for everyone. If you ask us to run in a particular way, you will lose points for it. By the way, [-o offset] and [-m] are optional commandline arguments. So, you cannot hardcode the positions. Since the first argument is *not* optional, it's a bit confusing that it begins with a "-" character. I'm going to change it to {adr|fsz|get}. This will be done in the next few minutes and I will send another e-mail to the whole class. -- Bill Cheng // bill.cheng@usc.edu