Skip to content

A configuration file format that is the same as command-line arguments.

License

Notifications You must be signed in to change notification settings

TxThinkingInc/CAC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CAC

Command-line Arguments Configuration

A configuration file format that is the same as command-line arguments.

Specification

  1. Write all the arguments into a file, and then run the command with the filename. The effect will be the same
  2. Supports multiple arguments on separate lines
  3. Ignore blank lines and comments lines starting with #

Example

The original command and arguments

command argument1 argument2 argument3

Write all arguments to CAC file

argument1 argument2 argument3

or

argument1 argument2
argument3

or

# this is comment
argument1
# this is comment too
argument2
argument3

Run command with CAC file

command /path/to/cac

Reference implementation

PR your implementation here

About

A configuration file format that is the same as command-line arguments.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages