aboutsummaryrefslogtreecommitdiffstats
path: root/solc
diff options
context:
space:
mode:
authorKevin Boxhoorn <kevinboxhoorn@yahoo.com>2016-10-15 14:36:40 +0800
committerKevin Boxhoorn <kevinboxhoorn@yahoo.com>2016-10-15 14:36:40 +0800
commit97703ac6e4c6beadb7cb5c783aa130a063d80a8a (patch)
tree99158950469f92753810d038263acc61c8f9bbb0 /solc
parent2d9109ba453d49547778c39a506b0ed492305c16 (diff)
downloaddexon-solidity-97703ac6e4c6beadb7cb5c783aa130a063d80a8a.tar
dexon-solidity-97703ac6e4c6beadb7cb5c783aa130a063d80a8a.tar.gz
dexon-solidity-97703ac6e4c6beadb7cb5c783aa130a063d80a8a.tar.bz2
dexon-solidity-97703ac6e4c6beadb7cb5c783aa130a063d80a8a.tar.lz
dexon-solidity-97703ac6e4c6beadb7cb5c783aa130a063d80a8a.tar.xz
dexon-solidity-97703ac6e4c6beadb7cb5c783aa130a063d80a8a.tar.zst
dexon-solidity-97703ac6e4c6beadb7cb5c783aa130a063d80a8a.zip
Add import remapping documentation to `solc --help`
Derived from the docs found [here](https://solidity.readthedocs.io/en/develop/miscellaneous.html#using-the-commandline-compiler). Fixes #1207.
Diffstat (limited to 'solc')
-rw-r--r--solc/CommandLineInterface.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp
index 2013c506..84cc2534 100644
--- a/solc/CommandLineInterface.cpp
+++ b/solc/CommandLineInterface.cpp
@@ -401,7 +401,10 @@ Usage: solc [options] [input_file...]
Compiles the given Solidity input files (or the standard input if none given or
"-" is used as a file name) and outputs the components specified in the options
at standard output or in files in the output directory, if specified.
-Example: solc --bin -o /tmp/solcoutput contract.sol
+Imports are automatically read from the filesystem, but it is also possible to
+remap paths using the context:prefix=path syntax.
+Example:
+ solc --bin -o /tmp/solcoutput dapp-bin=/usr/local/lib/dapp-bin contract.sol
Allowed options)",
po::options_description::m_default_line_length,