例如,你究竟如何解释命令“usage”输出的输出.
@H_404_1@例如,在我的OS X上,cp给了我
>大小写有什么意义吗?
>什么时候参数是可选的,必需的? @H_404_1@我需要针对我的程序实现一个telnet命令行,我想直截了当.
@H_404_1@>嵌套选项(如-H在-R中)表示什么?
- usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
- cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
>大小写有什么意义吗?
>什么时候参数是可选的,必需的? @H_404_1@我需要针对我的程序实现一个telnet命令行,我想直截了当.
对于任何想要了解输出用法意味着什么的人来说,最好的办法就是男人.
@H_404_1@认真地:-)花时间学习惯例,这真的很有帮助.
- The following conventions apply to the SYNOPSIS section and can be used
- as a guide in other sections.
- bold text type exactly as shown.
- italic text replace with appropriate argument.
- [-abc] any or all arguments within [ ] are optional.
- -a|-b options delimited by | cannot be used together.
- argument ... argument is repeatable.
- [expression] ... entire expression within [ ] is repeatable.