Skip to content

Commit ded63f3

Browse files
committed
Trying to address failures for tests tied to analysis_group
- In previouvs versions `analysis_group` is either set or not set, and we had `nargs` set to `?` - We changed it to `+` to accept 1 or more arguments. We probably would like to have 0 or more arguments for `analysis_group` - so changing `nargs` to `*`
1 parent 15e806f commit ded63f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iotile_analytics_interactive/iotile_analytics/interactive/scripts/analytics_host.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def build_args():
121121
parser.add_argument('--web-push-slug', type=str, default=None, help="Override the source slug given in the analysisgroup and force it to be this")
122122
parser.add_argument('--token', type=str, default=None, help="Token for authentication to iotile cloud (instead of a password)")
123123
parser.add_argument('-d', '--domain', default=DOMAIN_NAME, help="Domain to use for remote queries, defaults to https://iotile.cloud")
124-
parser.add_argument('analysis_group', default=None, nargs='+', help="The slug or path of the object you want to perform analysis on")
124+
parser.add_argument('analysis_group', default=None, nargs='*', help="The slug or path of the object you want to perform analysis on")
125125

126126
return parser
127127

0 commit comments

Comments
 (0)