1""" 2The B{0install man} command-line interface. 3""" 4 5# Copyright (C) 2012, Thomas Leonard 6# See the README file for details, or visit http://0install.net. 7 8from__future__importprint_function 910importsys,os1112fromzeroinstallimportsupport,logger1314syntax="NAME"15
20iflen(args)!=1ornot_0install_man(config,args[0]):21logger.debug("Not a 0install alias or app-script, so passing through to system man command: %r",args)22os.execlp('man','man',*args)