"...resnet50_tensorflow.git" did not exist on "be9b80251af1bc798553c9e5135f8b0f19fa0a81"
Unverified Commit 93457237 authored by J-shang's avatar J-shang Committed by GitHub
Browse files

block all `nnictl package` optional arguments (#3292)

parent 3fdfb334
......@@ -246,8 +246,8 @@ def parse_args():
def show_messsage_for_nnictl_package(args):
print_error('nnictl package command is replaced by nnictl algo, please run nnictl algo -h to show the usage')
parser_package_subparsers = subparsers.add_parser('package', help='control nni tuner and assessor packages')
parser_package_subparsers.add_argument('args', help='all subcommands have deprecated, nnictl package command is replaced by nnictl algo, please run nnictl algo -h to show the usage', nargs=argparse.REMAINDER)
parser_package_subparsers = subparsers.add_parser('package', help='this argument is replaced by algo', prefix_chars='\n')
parser_package_subparsers.add_argument('args', nargs=argparse.REMAINDER)
parser_package_subparsers.set_defaults(func=show_messsage_for_nnictl_package)
#parse tensorboard command
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment