MCPcopy
hub / github.com/NVlabs/stylegan2-ada / add_command

Function add_command

dataset_tool.py:870–872  ·  view source on GitHub ↗
(cmd, desc, example=None)

Source from the content-addressed store, hash-verified

868 subparsers = parser.add_subparsers(dest='command')
869 subparsers.required = True
870 def add_command(cmd, desc, example=None):
871 epilog = 'Example: %s %s' % (prog, example) if example is not None else None
872 return subparsers.add_parser(cmd, description=desc, help=desc, epilog=epilog)
873
874 p = add_command( 'info', 'Display general info about dataset.',
875 'info datasets/mnist')

Callers 1

execute_cmdlineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected