Bytestring run argv through clipext.
This commit is contained in:
parent
0adb6eb1c7
commit
9464067d69
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue