diff options
Diffstat (limited to 'src/support/command-line.h')
-rw-r--r-- | src/support/command-line.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/support/command-line.h b/src/support/command-line.h index 7c3ae528f..89bf72070 100644 --- a/src/support/command-line.h +++ b/src/support/command-line.h @@ -34,18 +34,18 @@ namespace wasm { class Options { public: - typedef std::function<void(Options *, const std::string &)> Action; + typedef std::function<void(Options *, const std::string& )> Action; enum class Arguments { Zero, One, N, Optional }; bool debug; std::map<std::string, std::string> extra; - Options(const std::string &command, const std::string &description); + Options(const std::string& command, const std::string& description); ~Options(); - Options &add(const std::string &longName, const std::string &shortName, - const std::string &description, Arguments arguments, + Options &add(const std::string& longName, const std::string& shortName, + const std::string& description, Arguments arguments, const Action &action); - Options &add_positional(const std::string &name, Arguments arguments, + Options &add_positional(const std::string& name, Arguments arguments, const Action &action); void parse(int argc, const char *argv[]); |