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

support for basic command line arguments #4

Open
realsobek opened this issue Sep 2, 2024 · 0 comments
Open

support for basic command line arguments #4

realsobek opened this issue Sep 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@realsobek
Copy link

Is your feature request readily implemented in software? Please describe.
Maybe yes?

Describe the solution you propose
Add support to "./terms" for arguments like "-V" or "--version" or "-h" or "--help" to report program version.

$ ./terms -V
1.0.0
$ ./terms --version
1.0.0
$ ./terms -h
usage: terms [input file]
standalone options: -h, --help; -V, --version
$ ./term --help
...like above...

Describe existing implementations / alternatives
Examples from other applications on Fedora 40 Xfce spin:

$ ssh -V
OpenSSH_9.6p1, OpenSSL 3.2.2 4 Jun 2024
$ vim --version
VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Aug 12 2024 00:00:00)
Included patches: 1-672
Modified by <[email protected]>
Compiled by <[email protected]>
Huge version without GUI.  Features included (+) or not (-):
+acl                +...  
   system vimrc file: "/etc/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
 3rd user vimrc file: "$XDG_CONFIG_HOME/vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c ...
Linking: gcc -Wl ...
$ xfce4-terminal -h
Usage:
  xfce4-terminal [OPTION...]

General Options:
  -h, --help; -V, --version ...

Additional context
I could not find a way to query the version of compiled TERM binary, including strings terms.

@realsobek realsobek added the enhancement New feature or request label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant