zowe / zowe-cli-ftp-plugin

Zowe CLI FTP Plugin
Eclipse Public License 2.0
16 stars 12 forks source link

zftp options do not match Zowe core CLI options (zos-files) #97

Closed plavjanik closed 2 years ago

plavjanik commented 2 years ago

I can upload a file using:

zowe zos-files upload ftu config.jar /u/ibmuser/config.jar --binary

But the same command in zftp does not work:

zowe zftp upload ftu config.jar /u/ibmuser/config.jar --binary --zftp-p lvnktest008942                                                              
Command Error:
Unknown arguments: binary, zftp-p, zftpP, ftu, config.jar, /u/ibmuser/config.jar
Command failed due to improper syntax
Did you mean:  zftp upload ftuf?

Command entered: "zftp upload ftu config.jar /u/ibmuser/config.jar --binary --zftp-p lvnktest008942"
Available commands are "file-to-data-set, stdin-to-data-set, stdin-to-uss-file, file-to-uss-file".
Use "zowe zftp upload --help" to view groups, commands, and options.

But I need to use a different command that does the same thing:

zowe zftp upload file-to-uss-file config.jar /u/ibmuser/config.jar --binary 

or

zowe zftp upload ftuf config.jar /u/ibmuser/config.jar --binary 

Would it be easier to preserve the same names and shortcuts for the commands that do the same thing?

std4lqi commented 2 years ago

@plavjanik

Yes, we'll add the second shortcut, ftu, for file-to-uss-file. Thanks!

tiantn commented 2 years ago

I went through all zftp commands and will add the second shortcut uf for uss-file, js for jobs, in for stdin, ftu for file-to-uss-file and stu for stdin-to-uss-file. Thanks.

plavjanik commented 2 years ago

Thank you @tiantn