Skip to content

Commit

Permalink
Remove unnecessary nargs
Browse files Browse the repository at this point in the history
  • Loading branch information
jvdsn committed Feb 13, 2022
1 parent 15a5b3f commit 3bd970e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions white_box_speck/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

parser = ArgumentParser(prog="sage -python -m white_box_speck", description="Generate a white-box Speck implementation using self-equivalence encodings")
parser.add_argument("key", nargs="+", help="the key to use for the Speck implementation, a hexadecimal representation of the words")
parser.add_argument("--block-size", nargs="?", type=int, default=128, choices=[32, 48, 64, 96, 128], help="the block size in bits of the Speck implementation (default: %(default)i)")
parser.add_argument("--key-size", nargs="?", type=int, default=256, choices=[64, 72, 96, 128, 144, 192, 256], help="the key size in bits of the Speck implementation (default: %(default)i)")
parser.add_argument("--output-dir", nargs="?", default=".", help="the directory to output the C files to (default: %(default)s)")
parser.add_argument("--self-equivalences", nargs="?", default="affine", choices=["affine", "linear"], help="the type of self-equivalences to use (default: %(default)s)")
parser.add_argument("--block-size", type=int, default=128, choices=[32, 48, 64, 96, 128], help="the block size in bits of the Speck implementation (default: %(default)i)")
parser.add_argument("--key-size", type=int, default=256, choices=[64, 72, 96, 128, 144, 192, 256], help="the key size in bits of the Speck implementation (default: %(default)i)")
parser.add_argument("--output-dir", default=".", help="the directory to output the C files to (default: %(default)s)")
parser.add_argument("--self-equivalences", default="affine", choices=["affine", "linear"], help="the type of self-equivalences to use (default: %(default)s)")
parser.add_argument("--debug", action="store_true", help="log debug messages")

args = parser.parse_args()
Expand Down

0 comments on commit 3bd970e

Please sign in to comment.