https://github.com/jftuga/cmdlineargs
Output all given command line arguments
https://github.com/jftuga/cmdlineargs
Last synced: about 1 year ago
JSON representation
Output all given command line arguments
- Host: GitHub
- URL: https://github.com/jftuga/cmdlineargs
- Owner: jftuga
- License: mit
- Created: 2021-05-13T15:25:43.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-04-21T11:37:30.000Z (about 4 years ago)
- Last Synced: 2025-01-29T23:29:54.496Z (over 1 year ago)
- Language: Go
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cmdlineargs
Output all given command line arguments to STDOUT unless the `CMDLINEARGS_FILE` environment variable is set.
In that case, append the command line arguments to the file stored in this value.
## Example
```
PS R:\> .\cmdlineargs.exe aaa "with spaces" bbb ccc 'another with spaces' ddd eee
========================================================================
2022-04-21T07:20:25-04:00
[ 0] C:\Users\john\go\src\github.com\jftuga\cmdlineargs\cmdlineargs.exe
[ 1] aaa
[ 2] with spaces
[ 3] bbb
[ 4] ccc
[ 5] another with spaces
[ 6] ddd
[ 7] eee
```