Skip to content

Commit

Permalink
Removed hardcoded scriptname and usage
Browse files Browse the repository at this point in the history
Removed the hardcoded scriptname and usage in the help menu
  • Loading branch information
sebkuf committed Jul 13, 2023
1 parent 8411a41 commit 7d7d13c
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions intelmq/bin/intelmq_psql_initdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
'source.abuse_contact', 'source.asn', 'source.ip', 'source.fqdn',
'time.observation', 'time.source']

APPNAME = 'intelmq_psql_initdb'

DESCRIPTION = """
Generates a SQL command file with commands to create the events table.
Expand All @@ -33,10 +31,6 @@
if the other one exists.
"""

USAGE = """
intelmq_psql_initdb [-o|--outputfile]
"""


def generate(harmonization_file=HARMONIZATION_CONF_FILE):
FIELDS = {}
Expand Down Expand Up @@ -96,10 +90,8 @@ def generate(harmonization_file=HARMONIZATION_CONF_FILE):

def main():
parser = argparse.ArgumentParser(
prog=APPNAME,
description=DESCRIPTION,
formatter_class=argparse.RawDescriptionHelpFormatter,
usage=USAGE
formatter_class=argparse.RawDescriptionHelpFormatter
)
parser.add_argument('-o', '--outputfile',
help='Defines the Ouputfile',
Expand Down

0 comments on commit 7d7d13c

Please sign in to comment.