def parse_hologram_send_args(parser):
# Create a subparser
parser.add_argument('--devicekey', nargs='?', help='Hologram device key (8 characters long)')
parser.add_argument('message', nargs='?', help='Message that will be sent to the cloud')
parser.add_argument('-v', nargs='?', action=VAction, dest='verbose', required=False)
parser.add_argument('--host', required=False, help=argparse.SUPPRESS)
parser.add_argument('-p', '--port', required=False, help=argparse.SUPPRESS)
parser.add_argument('--authtype', default='totp', nargs='?',
help='The authentication type used if HologramCloud is in use. Choose between \'totp\' and \'csrpsk\'')
# $ hologram send cloud ...
parse_cloud_args(parser)
# $ hologram send sms ...
parse_sms_args(parser)
# EFFECTS: Parses the send cloud options. Sets the default command_selected option
# to send_cloud.
评论列表
文章目录