Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when calling streamsx-streamtool without sub command #2392

Closed
markheger opened this issue Mar 20, 2020 · 1 comment
Closed

Error when calling streamsx-streamtool without sub command #2392

markheger opened this issue Mar 20, 2020 · 1 comment
Assignees

Comments

@markheger
Copy link
Member

streamsx-streamtool
Traceback (most recent call last):
  File "/home/streamsadmin/anaconda3/bin/streamsx-streamtool", line 8, in <module>
    sys.exit(main())
  File "/home/streamsadmin/anaconda3/lib/python3.6/site-packages/streamsx/scripts/streamtool.py", line 824, in main
    rc, extra_info = run_cmd(args)
  File "/home/streamsadmin/anaconda3/lib/python3.6/site-packages/streamsx/scripts/streamtool.py", line 792, in run_cmd
    username=cmd_args.User,
AttributeError: 'Namespace' object has no attribute 'User'

It should print the help text instead.

@markheger
Copy link
Member Author

Expected result:

streamsx-streamtool
usage: streamsx-streamtool [-h] [--disable-ssl-verify]
                           {submitjob,canceljob,lsjobs,lsappconfig,rmappconfig,mkappconfig,chappconfig,getappconfig,rmtoolkit,lstoolkit,uploadtoolkit,updateoperators}
                           ...
streamsx-streamtool: error: argument subcmd: invalid choice: ' ' (choose from 'submitjob', 'canceljob', 'lsjobs', 'lsappconfig', 'rmappconfig', 'mkappconfig', 'chappconfig', 'getappconfig', 'rmtoolkit', 'lstoolkit', 'uploadtoolkit', 'updateoperators')

markheger pushed a commit that referenced this issue Mar 20, 2020
 streamsx-streamtool: print_help when subcmd is missing, resolves #2392
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant