diff options
Diffstat (limited to 'src/cmd/asn1.cpp')
-rw-r--r-- | src/cmd/asn1.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/asn1.cpp b/src/cmd/asn1.cpp index 7264c1a6d..2aa94cc39 100644 --- a/src/cmd/asn1.cpp +++ b/src/cmd/asn1.cpp @@ -317,16 +317,16 @@ void decode(BER_Decoder& decoder, size_t level) } } -int asn1(int argc, char* argv[]) +int asn1(const std::vector<std::string> &args) { - if(argc != 2) + if(args.size() != 2) { - std::cout << "Usage: " << argv[0] << " <file>" << std::endl; + std::cout << "Usage: " << args[0] << " <file>" << std::endl; return 1; } try { - DataSource_Stream in(argv[1]); + DataSource_Stream in(args[1]); if(!PEM_Code::matches(in)) { |