datalad.cmdline.main¶
- class datalad.cmdline.main.ArgumentParserDisableAbbrev(prog=None, usage=None, description=None, epilog=None, parents=[], formatter_class=<class 'argparse.HelpFormatter'>, prefix_chars='-', fromfile_prefix_chars=None, argument_default=None, conflict_handler='error', add_help=True, allow_abbrev=True, exit_on_error=True)[source]¶
Bases:
argparse.ArgumentParser
- datalad.cmdline.main.fail_with_short_help(parser=None, msg=None, known=None, provided=None, hint=None, exit_code=1, what='command', out=None)[source]¶
Generic helper to fail with short help possibly hinting on what was intended if known were provided
- datalad.cmdline.main.get_commands_from_groups(groups)[source]¶
Get a dictionary of command: interface_spec