Bytestring run argv through clipext.

This commit is contained in:
Ethan Dalool 2018-07-13 00:40:26 -07:00
parent 0adb6eb1c7
commit 9464067d69

View file

@ -1,6 +1,9 @@
import re import re
import sys import sys
from voussoirkit import clipext
__VERSION__ = '0.0.1' __VERSION__ = '0.0.1'
BYTE = 1 BYTE = 1
@ -129,7 +132,8 @@ def main(args=None):
if len(args) != 1: if len(args) != 1:
print('Usage: bytestring.py <number>') print('Usage: bytestring.py <number>')
return 1 return 1
n = int(sys.argv[1]) number = clipext.resolve(sys.argv[1])
n = int(number)
print(bytestring(n)) print(bytestring(n))
return 0 return 0