diff options
author | James Clarke <jrtc27@jrtc27.com> | 2020-01-31 20:57:04 +0000 |
---|---|---|
committer | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-02-12 23:08:01 -0800 |
commit | db338fd0e1a6b5e479bbd29265b020a66e70a886 (patch) | |
tree | 6eee56f1b387bd29aa1b88f9f01d3d9e090ccfdc /fesvr/htif.cc | |
parent | 496b58190c11af44849d12886a610c36d7737f5a (diff) | |
download | spike-db338fd0e1a6b5e479bbd29265b020a66e70a886.zip spike-db338fd0e1a6b5e479bbd29265b020a66e70a886.tar.gz spike-db338fd0e1a6b5e479bbd29265b020a66e70a886.tar.bz2 |
Support plusarg +h/+help option for HTIF
Diffstat (limited to 'fesvr/htif.cc')
-rw-r--r-- | fesvr/htif.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fesvr/htif.cc b/fesvr/htif.cc index d9e884f..2309f12 100644 --- a/fesvr/htif.cc +++ b/fesvr/htif.cc @@ -249,7 +249,11 @@ void htif_t::parse_arguments(int argc, char ** argv) throw std::invalid_argument("Unknown argument (did you mean to enable +permissive parsing?)"); case 1: { std::string arg = optarg; - if (arg == "+rfb") { + if (arg == "+h" || arg == "+help") { + c = 'h'; + optarg = nullptr; + } + else if (arg == "+rfb") { c = HTIF_LONG_OPTIONS_OPTIND; optarg = nullptr; } |