added add_linkfile_option() method
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Tue, 25 Oct 2011 15:58:54 +0000 (11:58 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Tue, 25 Oct 2011 15:58:54 +0000 (11:58 -0400)
sfa/client/sfi_commands.py

index bdcc16d..80897cd 100755 (executable)
@@ -12,6 +12,7 @@ class Commands:
         self.parser.add_option("-o", "", dest="outfile", metavar="FILE",
                                help="write output to FILE (default is stdout)")
         self.nodefile = False
+        self.linkfile = False
         self.attributes = {}
 
     def add_nodefile_option(self):
@@ -20,6 +21,12 @@ class Commands:
                                metavar="FILE",
                                help="read node list from FILE"),
 
+    def add_linkfile_option(self):
+        self.linkfile = True
+        self.parser.add_option("-l", "", dest="linkfile",
+                               metavar="FILE",
+                               help="read link list from FILE") 
+
     def add_show_attributes_option(self):
         self.parser.add_option("-s", "--show-attributes", action="store_true", 
                                dest="showatt", default=False,