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

Mutually exclusive options & help #21

Open
dblevins opened this issue Aug 28, 2014 · 1 comment
Open

Mutually exclusive options & help #21

dblevins opened this issue Aug 28, 2014 · 1 comment

Comments

@dblevins
Copy link
Member

Something we might possibly support. Not sure what kind of an API we'd make for this, but here are some use cases. Couldn't find many commands that acknowledge this formally

tail

 tail [-F | -f | -r] [-q] [-b number | -c number | -n number] [file ...]

F, f & r are mutually exclusive. b,c,n are mutually exclusive.

tar

tar {-t | -x} [options] [patterns]

t and x are mutually exclusive

jar

The synopsis is a bit large but c, u, x, t, i are all mutually exclusive

   jar c[v0M]f jarfile [ -C dir ] inputfiles [ -Joption ]
   jar c[v0]mf manifest jarfile [ -C dir ] inputfiles [ -Joption ]
   jar c[v0M] [ -C dir ] inputfiles [ -Joption ]
   jar c[v0]m manifest [ -C dir ] inputfiles [ -Joption ]

   Update jar file
   jar u[v0M]f jarfile [ -C dir ] inputfiles [ -Joption ]
   jar u[v0]mf manifest jarfile [ -C dir ] inputfiles [ -Joption ]
   jar u[v0M] [ -C dir ] inputfiles [ -Joption ]
   jar u[v0]m manifest [ -C dir ] inputfiles [ -Joption ]

   Extract jar file
   jar x[v]f jarfile [ inputfiles ] [ -Joption ]
   jar x[v] [ inputfiles ] [ -Joption ]

   List table of contents of jar file
   jar t[v]f jarfile [ inputfiles ] [ -Joption ]
   jar t[v] [ inputfiles ] [ -Joption ]

   Add index to jar file
   jar i jarfile [ -Joption ]

cut

b, c, f are mutually exclusive

 cut -b list [-n] [file ...]
 cut -c list [file ...]
 cut -f list [-d delim] [-s] [file ...]
@danielsoro
Copy link
Contributor

+1

Daniel Cunha (soro) http://www.cejug.net
Blog: http://www.danielsoro.com.br
Twitter: https://twitter.com/dvlc_
GitHub: https://github.com/danielsoro
LinkedIn: http://www.linkedin.com/in/danielvlcunha
Sent from my cell phone
Em 28/08/2014 17:57, "David Blevins" notifications@github.com escreveu:

Something we might possibly support. Not sure what kind of an API we'd
make for this, but here are some use cases. Couldn't find many commands
that acknowledge this formally
tail

tail [-F | -f | -r] [-q] [-b number | -c number | -n number] [file ...]

F, f & r are mutually exclusive. b,c,n are mutually exclusive.
tar

tar {-t | -x} [options] [patterns]

t and x are mutually exclusive
jar

The synopsis is a bit large but c, u, x, t, i are all mutually exclusive

jar c[v0M]f jarfile [ -C dir ] inputfiles [ -Joption ]
jar c[v0]mf manifest jarfile [ -C dir ] inputfiles [ -Joption ]
jar c[v0M] [ -C dir ] inputfiles [ -Joption ]
jar c[v0]m manifest [ -C dir ] inputfiles [ -Joption ]

Update jar file
jar u[v0M]f jarfile [ -C dir ] inputfiles [ -Joption ]
jar u[v0]mf manifest jarfile [ -C dir ] inputfiles [ -Joption ]
jar u[v0M] [ -C dir ] inputfiles [ -Joption ]
jar u[v0]m manifest [ -C dir ] inputfiles [ -Joption ]

Extract jar file
jar x[v]f jarfile [ inputfiles ] [ -Joption ]
jar x[v] [ inputfiles ] [ -Joption ]

List table of contents of jar file
jar t[v]f jarfile [ inputfiles ] [ -Joption ]
jar t[v] [ inputfiles ] [ -Joption ]

Add index to jar file
jar i jarfile [ -Joption ]


Reply to this email directly or view it on GitHub
#21.

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

2 participants