Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Trigger Distribution
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Trigger Distribution
Commits
49057cee
Commit
49057cee
authored
Sep 12, 2019
by
Dimitris Lampridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[sw][tools] allow passing the dev-id argument as an int with base other than 10
parent
4a87155f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
wrtd-config.py
software/tools/wrtd-config.py
+1
-1
wrtd-logging.py
software/tools/wrtd-logging.py
+1
-1
No files found.
software/tools/wrtd-config.py
View file @
49057cee
...
...
@@ -280,7 +280,7 @@ def time_interval_help():
def
main
():
parser
=
argparse
.
ArgumentParser
(
description
=
'WRTD node configuration tool'
)
parser
.
add_argument
(
'-D'
,
'--dev-id'
,
dest
=
'dev'
,
required
=
True
,
type
=
int
,
parser
.
add_argument
(
'-D'
,
'--dev-id'
,
dest
=
'dev'
,
required
=
True
,
type
=
lambda
x
:
int
(
x
,
0
)
,
help
=
'MockTurtle device ID (integer) to open'
)
subparsers
=
parser
.
add_subparsers
(
title
=
'Available commands'
,
dest
=
'command'
,
metavar
=
'<command>'
,
...
...
software/tools/wrtd-logging.py
View file @
49057cee
...
...
@@ -27,7 +27,7 @@ def main():
signal
.
signal
(
signal
.
SIGINT
,
signal_handler
)
parser
=
argparse
.
ArgumentParser
(
description
=
'WRTD node log monitoring tool'
)
parser
.
add_argument
(
'-D'
,
'--dev-id'
,
dest
=
'dev'
,
required
=
True
,
type
=
int
,
parser
.
add_argument
(
'-D'
,
'--dev-id'
,
dest
=
'dev'
,
required
=
True
,
type
=
lambda
x
:
int
(
x
,
0
)
,
help
=
'MockTurtle device ID (integer) to open'
)
parser
.
add_argument
(
'-c'
,
'--count'
,
dest
=
'count'
,
type
=
int
,
default
=
0
,
help
=
'Number of entries to read (0 = infinite)'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment