Use sys.flags for debug option