class

Dast::Cli

Inherits Clim < Clim::Types < Reference < Object

Constants

USAGE = "dast [options] [arguments]\n\n -- arguments example --\n\n ex1) If no arguments, display last 1 week.\n\n $ dast\n '2018-03-15','2018-03-16', ... (last 1 week)\n\n ex2) If one date, display from specified date to now.\n\n $ dast 2018-03-10\n '2018-03-10','2018-03-11', ... '2018-03-21' (today)\n\n -- date format: [%Y-%m-%d] or [%Y/%m/%d] or [%Y-%m-%d %H:%M:%S]\n\n ex3) If one diff format, display from applied diff date to now.\n\n $ dast ~3day\n '2018-03-18','2018-03-19','2018-03-20','2018-03-21' (today)\n\n -- The minus sign is specified with \"~\".\n -- diff format: /(|+|~)\\d+(year|y|month|mon|day|d||hour|h|minute|min|m|second|sec|s)?/\n\n ex4) If two date, display from date1 to date2.\n\n $ dast 2018-03-25 2018-03-27\n '2018-03-25','2018-03-26','2018-03-27'\n\n ex5) If date and diff format, display from applied diff date to date.\n\n $ dast 2018-03-27 ~3day\n '2018-03-24','2018-03-25','2018-03-26','2018-03-27'\n\n ex6) Interval, Format, Delimiter, Quote.\n\n $ dast '2018-03-21 12:00:00' 1h --interval=20min --format='%Y-%m-%d %H:%M:%S' --delimiter=' | ' --quote='\"'\n \"2018-03-21 12:00:00\" | \"2018-03-21 12:20:00\" | \"2018-03-21 12:40:00\" | \"2018-03-21 13:00:00\"\n"

Class methods

start(argv)
start_parse(argv, io : IO = STDOUT)

Nested types