From ab62432f83fd4f72b0bb78c442649d5632caf330 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 25 Oct 2011 11:58:54 -0400 Subject: [PATCH] added add_linkfile_option() method --- sfa/client/sfi_commands.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sfa/client/sfi_commands.py b/sfa/client/sfi_commands.py index bdcc16d4..80897cd2 100755 --- a/sfa/client/sfi_commands.py +++ b/sfa/client/sfi_commands.py @@ -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, -- 2.43.0