aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Fincham <michael@hotplate.co.nz>2017-02-22 15:01:00 +1300
committerGitHub <noreply@github.com>2017-02-22 15:01:00 +1300
commit47ff7ddc44c3c931f7d9614a4937733d8efa486c (patch)
tree449906d2fe0575816f54eaa531a56015889ed08f
parent9b366169b025dff0f229612431c29440e4922304 (diff)
downloadsmokeping-targets-generator-47ff7ddc44c3c931f7d9614a4937733d8efa486c.tar.gz
smokeping-targets-generator-47ff7ddc44c3c931f7d9614a4937733d8efa486c.tar.bz2
smokeping-targets-generator-47ff7ddc44c3c931f7d9614a4937733d8efa486c.zip
Cosmetic change to follow UNIX conventionsHEADmaster
-rw-r--r--smokeping-targets-generator6
1 files changed, 3 insertions, 3 deletions
diff --git a/smokeping-targets-generator b/smokeping-targets-generator
index 744eb35..ed1e904 100644
--- a/smokeping-targets-generator
+++ b/smokeping-targets-generator
@@ -102,15 +102,15 @@ if __name__ == '__main__':
parser.add_argument('--menu', help='top level menu name, defaults to "Top"', default="Top")
parser.add_argument('--title', help='top level title, defaults to "Network Latency Graphs"', default="Network Latency Graphs")
parser.add_argument('--remark', help='top level remark, defaults to empty if not specified', default=None)
- parser.add_argument('filename', nargs='?', help='filename to read from, defaults to stdin', default='-')
+ parser.add_argument('file', nargs='?', help='file to read from, defaults to stdin', default='-')
args = parser.parse_args()
config = ConfigParser.ConfigParser(allow_no_value=True)
- if args.filename == '-':
+ if args.file == '-':
config.readfp(sys.stdin)
else:
- config.read(args.filename)
+ config.read(args.file)
if args.remark:
remark = "\nremark = %s" % args.remark