-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
main: Improve command-line handling and usage string
To determine program name from argv[0]/argv[1] remove everything after the first '-' or '.' character. This allows names like snabbnfv, snabbnfv-1.0, snabbnfv-lukes-turbo-charged-version, snabbnfv.linux, and so on. Make the usage printout for 'snabb' and 'snabb -h' and 'snabb --help' better: Usage: ./snabb <program> ... This snabb executable has the following programs built in: packetblaster snabbmark snabbnfv snsh For detailed usage of any program run: snabb <program> --help If you rename (or copy or symlink) this executable with one of the names above then that program will be chosen automatically. The program list is determined automatically by the Makefile.
- Loading branch information
Showing
2 changed files
with
48 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters