import types/dispatcher let disp = newDispatcher() import options import os import terminal when defined(profile): import nimprof import config/config import display/client import ips/forkserver import utils/twtstr let conf = readConfig() widthtable = makewidthtable(conf.ambiguous_double) let params = commandLineParams() proc version(long: static bool = false): string = result = "Chawan browser v0.1 " when defined(debug): result &= "(debug)" else: result &= "(release)" proc help(i: int) = let s = version() & """ Usage: cha [options] [URL(s) or file(s)...] Options: -- Interpret all following arguments as URLs -d, --dump Print page to stdout -c, --css Pass stylesheet (e.g. -c 'a{color: blue}') -o, --opt Pass config options (e.g. -o 'page.q="QUIT"') -T, --type Specify content mime type -M, --monochrome Alias of -o color-mode='monochrome' -V, --visual Visual startup mode -r, --run