Skip to content

Commit

Permalink
Fixed bug in main.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Russinovich committed Feb 20, 2022
1 parent 1d973f1 commit a02af07
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
# read arguments
#
def parse_commandline():
parser = argparse.ArgumentParser(description='A script that encodes the specified image and posts a transaction to the Bitcoin blockchain')
parser.add_argument(prog='btcgraffiti')
parser = argparse.ArgumentParser(prog='btcgraffiti', description='A script that encodes the specified image and posts a transaction to the Bitcoin blockchain')
parser.add_argument('file', metavar='file', help='name of file to post or to decode into')
group = parser.add_mutually_exclusive_group()
group.add_argument('--key', "-k", help='Account key' )
Expand All @@ -38,7 +37,6 @@ def main():
args = parse_commandline()

# either encode or decode
print(args.prog)
if args.key != None:
encode_to_btc( args.key, args.net, args.file )
else:
Expand Down

0 comments on commit a02af07

Please sign in to comment.