_Command = TFL.CAO.Cmd \ ( handler = _main , args = ( "date:S=%s" % CAL.Date () , ) , opts = ( "astro_twilight:B?Show astro twilight (-18 degrees below horizon)" , "civil_twilight:B?Show civil twilight (-6 degrees below horizon)" , "day_length:B?Show length of day in hours" , "latitude:F?Latitude (north is positive)" , "longitude:F?Longitude (negative is east of Greenwich)" , "-nautic_twilight:B" "?Show time of nautic twilight (sun -12 degrees below horizon)" , "-transit:B?Show transit height" , "-year:I?Show sunrise/transit/set data for whole year" , TFL.CAO.Opt.Location ( name = "Location" , description = "Location of observer" , default = "Vienna" ) ) ) if __name__ != "__main__": SKY._Export("*") else: _Command() ### __END__ SKY.Sun
_Command = TFL.CAO.Cmd \ ( handler = _main , args = ( "date:S=%s" % CAL.Date () , ) , opts = ( "astro_twilight:B?Show astro twilight (-18 degrees below horizon)" , "civil_twilight:B?Show civil twilight (-6 degrees below horizon)" , "day_length:B?Show length of day in hours" , "latitude:F?Latitude (north is positive)" , "longitude:F?Longitude (negative is east of Greenwich)" , "-nautic_twilight:B" "?Show time of nautic twilight (sun -12 degrees below horizon)" , "-transit:B?Show transit height" , "-year:I?Show sunrise/transit/set data for whole year" , TFL.CAO.Opt.Location ( name = "Location" , description = "Location of observer" , default = "Vienna" ) ) ) if __name__ != "__main__": SKY._Export ("*") else : _Command () ### __END__ SKY.Sun