synapse get command line nargs usage/error

Description

noticed that the

command id argument is defined with nargs='?' (consume 1 or or 0 arguments). There is no default specified (nor is there necessarily a sensible default here). As a result executing a bare synapse get call returns an unhelpful error that is caused by null pointer on a None value during execution.

There doesn't seem to be any reason to use nargs here, id should be a required positional argument, but ned to confirm there is no historical reason for this behavior.

Environment

all

Fixed
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Chia-Hui Lin

Reporter

Jordan Kiang

Validator

Jordan Kiang