Skip to content

Commit 7d7d13c

Browse files
committed
Removed hardcoded scriptname and usage
Removed the hardcoded scriptname and usage in the help menu
1 parent 8411a41 commit 7d7d13c

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

intelmq/bin/intelmq_psql_initdb.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
'source.abuse_contact', 'source.asn', 'source.ip', 'source.fqdn',
2424
'time.observation', 'time.source']
2525

26-
APPNAME = 'intelmq_psql_initdb'
27-
2826
DESCRIPTION = """
2927
Generates a SQL command file with commands to create the events table.
3028
@@ -33,10 +31,6 @@
3331
if the other one exists.
3432
"""
3533

36-
USAGE = """
37-
intelmq_psql_initdb [-o|--outputfile]
38-
"""
39-
4034

4135
def generate(harmonization_file=HARMONIZATION_CONF_FILE):
4236
FIELDS = {}
@@ -96,10 +90,8 @@ def generate(harmonization_file=HARMONIZATION_CONF_FILE):
9690

9791
def main():
9892
parser = argparse.ArgumentParser(
99-
prog=APPNAME,
10093
description=DESCRIPTION,
101-
formatter_class=argparse.RawDescriptionHelpFormatter,
102-
usage=USAGE
94+
formatter_class=argparse.RawDescriptionHelpFormatter
10395
)
10496
parser.add_argument('-o', '--outputfile',
10597
help='Defines the Ouputfile',

0 commit comments

Comments
 (0)