Skip to content

Commit

Permalink
Toggle flag instead of value
Browse files Browse the repository at this point in the history
  • Loading branch information
adulau committed Sep 12, 2016
1 parent aef6bbc commit e70cc7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/tagstatistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def init(url, key):

if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Get statistics from tags.')
parser.add_argument("-p", "--percentage", help="An optional field, if set, it will return the results in percentages, otherwise it returns exact count.")
parser.add_argument("-n", "--namesort", help="An optional field, if set, values are sort by the namespace, otherwise the sorting will happen on the value.")
parser.add_argument("-p", "--percentage", action='store_true', default=None, help="An optional field, if set, it will return the results in percentages, otherwise it returns exact count.")
parser.add_argument("-n", "--namesort", action='store_true', default=None, help="An optional field, if set, values are sort by the namespace, otherwise the sorting will happen on the value.")
args = parser.parse_args()

misp = init(misp_url, misp_key)
Expand Down

0 comments on commit e70cc7a

Please sign in to comment.