def _xonfig_create_parser(): p = argparse.ArgumentParser(prog='xonfig', description='Manages xonsh configuration.') subp = p.add_subparsers(title='action', dest='action') info = subp.add_parser('info', help=('displays configuration information, ' 'default action')) info.add_argument('--json', action='store_true', default=False, help='reports results as json') wiz = subp.add_parser('wizard', help=('displays configuration information, ' 'default action')) wiz.add_argument('--file', default=None, help='config file location, default=$XONSHCONFIG') wiz.add_argument('--confirm', action='store_true', default=False, help='confirm that the wizard should be run.') sty = subp.add_parser('styles', help='prints available xonsh color styles') sty.add_argument('--json', action='store_true', default=False, help='reports results as json') subp.add_parser('colors', help=('displays the color palette for ' 'the current xonsh color style')) return p
def _xonfig_create_parser(): p = argparse.ArgumentParser( prog="xonfig", description="Manages xonsh configuration." ) subp = p.add_subparsers(title="action", dest="action") info = subp.add_parser( "info", help=("displays configuration information, " "default action") ) info.add_argument( "--json", action="store_true", default=False, help="reports results as json" ) wiz = subp.add_parser("wizard", help="displays configuration information") wiz.add_argument( "--file", default=None, help="config file location, default=$XONSHRC" ) wiz.add_argument( "--confirm", action="store_true", default=False, help="confirm that the wizard should be run.", ) sty = subp.add_parser("styles", help="prints available xonsh color styles") sty.add_argument( "--json", action="store_true", default=False, help="reports results as json" ) colors = subp.add_parser("colors", help="preview color style") colors.add_argument( "style", nargs="?", default=None, help="style to preview, default: <current>" ) subp.add_parser("tutorial", help="Launch tutorial in browser.") return p
def _xonfig_create_parser(): p = argparse.ArgumentParser(prog='xonfig', description='Manages xonsh configuration.') subp = p.add_subparsers(title='action', dest='action') info = subp.add_parser('info', help=('displays configuration information, ' 'default action')) info.add_argument('--json', action='store_true', default=False, help='reports results as json') wiz = subp.add_parser('wizard', help='displays configuration information') wiz.add_argument('--file', default=None, help='config file location, default=$XONSHRC') wiz.add_argument('--confirm', action='store_true', default=False, help='confirm that the wizard should be run.') sty = subp.add_parser('styles', help='prints available xonsh color styles') sty.add_argument('--json', action='store_true', default=False, help='reports results as json') colors = subp.add_parser('colors', help='preview color style') colors.add_argument('style', nargs='?', default=None, help='style to preview, default: <current>') subp.add_parser('tutorial', help='Launch tutorial in browser.') return p
def _xonfig_create_parser(): p = argparse.ArgumentParser(prog="xonfig", description="Manages xonsh configuration.") subp = p.add_subparsers(title="action", dest="action") info = subp.add_parser("info", help=("displays configuration information, " "default action")) info.add_argument("--json", action="store_true", default=False, help="reports results as json") wiz = subp.add_parser("wizard", help="displays configuration information") wiz.add_argument("--file", default=None, help="config file location, default=$XONSHRC") wiz.add_argument( "--confirm", action="store_true", default=False, help="confirm that the wizard should be run.", ) sty = subp.add_parser("styles", help="prints available xonsh color styles") sty.add_argument("--json", action="store_true", default=False, help="reports results as json") colors = subp.add_parser("colors", help="preview color style") colors.add_argument("style", nargs="?", default=None, help="style to preview, default: <current>") subp.add_parser("tutorial", help="Launch tutorial in browser.") return p
def _xonfig_create_parser(): p = argparse.ArgumentParser(prog="xonfig", description="Manages xonsh configuration.") subp = p.add_subparsers(title="action", dest="action") info = subp.add_parser("info", help=("displays configuration information, " "default action")) info.add_argument("--json", action="store_true", default=False, help="reports results as json") web = subp.add_parser("web", help="Launch configurator in browser.") web.add_argument( "--no-browser", action="store_false", dest="browser", default=True, help="don't open browser", ) wiz = subp.add_parser("wizard", help="Launch configurator in terminal") wiz.add_argument("--file", default=None, help="config file location, default=$XONSHRC") wiz.add_argument( "--confirm", action="store_true", default=False, help="confirm that the wizard should be run.", ) sty = subp.add_parser("styles", help="prints available xonsh color styles") sty.add_argument("--json", action="store_true", default=False, help="reports results as json") colors = subp.add_parser("colors", help="preview color style") colors.add_argument("style", nargs="?", default=None, help="style to preview, default: <current>") subp.add_parser("tutorial", help="Launch tutorial in browser.") kern = subp.add_parser("jupyter-kernel", help="Generate xonsh kernel for jupyter.") kern.add_argument( "--user", action="store_true", default=False, help="Install kernel spec in user config directory.", ) kern.add_argument( "--root", default=None, help="Install relative to this alternate root directory.", ) kern.add_argument("--prefix", default=None, help="Installation prefix for bin, lib, etc.") return p