Skip to content

Commit 25d9c9f

Browse files
committed
ndnsec: add a short description to the --help output of each command
Change-Id: Ifcc217bb096f1f27bceb609f5f117cf8b1d0c73d
1 parent 9b911e9 commit 25d9c9f

File tree

13 files changed

+40
-17
lines changed

13 files changed

+40
-17
lines changed

docs/manpages/ndnsec-key-gen.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Synopsis
55
--------
66

77
**ndnsec key-gen** [**-h**] [**-n**] [**-t** *type*]
8-
[**-k** *keyidtype*\|\ **--keyid** *keyid*] *identity*
8+
[**-k** *keyidtype*\|\ **\--keyid** *keyid*] *identity*
99

1010
Description
1111
-----------

tools/ndnsec/cert-dump.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
/*
3-
* Copyright (c) 2013-2023 Regents of the University of California.
3+
* Copyright (c) 2013-2024 Regents of the University of California.
44
*
55
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
66
*
@@ -43,6 +43,8 @@ ndnsec_cert_dump(int argc, char** argv)
4343
po::options_description description(
4444
"Usage: ndnsec cert-dump [-h] [-p] [-r [-H HOST] [-P PORT]] [-i|-k|-f] [-n] NAME\n"
4545
"\n"
46+
"Display a certificate from a file or the local PIB.\n"
47+
"\n"
4648
"Options");
4749
description.add_options()
4850
("help,h", "produce help message")

tools/ndnsec/cert-gen.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ ndnsec_cert_gen(int argc, char** argv)
4646
"Usage: ndnsec cert-gen [-h] [-S TIMESTAMP] [-E TIMESTAMP] [-I INFO]...\n"
4747
" [-s IDENTITY] [-i ISSUER] [-r] FILE\n"
4848
"\n"
49+
"Issue a certificate from a certificate signing request.\n"
50+
"\n"
4951
"Options");
5052
description.add_options()
5153
("help,h", "produce help message")

tools/ndnsec/cert-install.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
/*
3-
* Copyright (c) 2013-2023 Regents of the University of California.
3+
* Copyright (c) 2013-2024 Regents of the University of California.
44
*
55
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
66
*
@@ -42,6 +42,8 @@ ndnsec_cert_install(int argc, char** argv)
4242
po::options_description description(
4343
"Usage: ndnsec cert-install [-h] [-I|-K|-N] [-f] FILE\n"
4444
"\n"
45+
"Import a certificate from a file.\n"
46+
"\n"
4547
"Options");
4648
description.add_options()
4749
("help,h", "produce help message")

tools/ndnsec/delete.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
/*
3-
* Copyright (c) 2013-2023 Regents of the University of California.
3+
* Copyright (c) 2013-2024 Regents of the University of California.
44
*
55
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
66
*
@@ -36,6 +36,8 @@ ndnsec_delete(int argc, char** argv)
3636
po::options_description description(
3737
"Usage: ndnsec delete [-h] [-k|-c] [-n] NAME\n"
3838
"\n"
39+
"Delete an identity, key, or certificate.\n"
40+
"\n"
3941
"Options");
4042
description.add_options()
4143
("help,h", "produce help message")

tools/ndnsec/export.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
/*
3-
* Copyright (c) 2013-2023 Regents of the University of California.
3+
* Copyright (c) 2013-2024 Regents of the University of California.
44
*
55
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
66
*
@@ -47,6 +47,8 @@ ndnsec_export(int argc, char** argv)
4747
po::options_description visibleOptDesc(
4848
"Usage: ndnsec export [-h] [-o FILE] [-P PASSPHRASE] [-i|-k|-c] NAME\n"
4949
"\n"
50+
"Export a private key and its certificate in SafeBag format.\n"
51+
"\n"
5052
"Options");
5153
visibleOptDesc.add_options()
5254
("help,h", "produce help message")

tools/ndnsec/get-default.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
/*
3-
* Copyright (c) 2013-2023 Regents of the University of California.
3+
* Copyright (c) 2013-2024 Regents of the University of California.
44
*
55
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
66
*
@@ -38,6 +38,8 @@ ndnsec_get_default(int argc, char** argv)
3838
po::options_description description(
3939
"Usage: ndnsec get-default [-h] [-k|-c] [-i ID|-K KEY] [-q]\n"
4040
"\n"
41+
"Show the default identity, key, or certificate.\n"
42+
"\n"
4143
"Options");
4244
description.add_options()
4345
("help,h", "produce help message")

tools/ndnsec/import.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
/*
3-
* Copyright (c) 2013-2023 Regents of the University of California.
3+
* Copyright (c) 2013-2024 Regents of the University of California.
44
*
55
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
66
*
@@ -43,6 +43,8 @@ ndnsec_import(int argc, char** argv)
4343
po::options_description description(
4444
"Usage: ndnsec import [-h] [-P PASSPHRASE] [-i] FILE\n"
4545
"\n"
46+
"Import a private key and its certificate from a SafeBag.\n"
47+
"\n"
4648
"Options");
4749
description.add_options()
4850
("help,h", "produce help message")

tools/ndnsec/key-gen.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ ndnsec_key_gen(int argc, char** argv)
3636
std::string userKeyId;
3737

3838
po::options_description description(
39-
"Usage: ndnsec key-gen [-h] [-n] [-t TYPE] [-k KEYIDTYPE|--keyid KEYID] [-i] IDENTITY\n"
39+
"Usage: ndnsec key-gen [-h] [-n] [-t TYPE] [-k KEYIDTYPE|--keyid KEYID]\n"
40+
" [-i] IDENTITY\n"
41+
"\n"
42+
"Generate a public/private key pair for an identity.\n"
4043
"\n"
4144
"Options");
4245
description.add_options()

tools/ndnsec/list.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
/*
3-
* Copyright (c) 2013-2023 Regents of the University of California.
3+
* Copyright (c) 2013-2024 Regents of the University of California.
44
*
55
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
66
*
@@ -208,6 +208,8 @@ ndnsec_list(int argc, char** argv)
208208
po::options_description description(
209209
"Usage: ndnsec list [-h] [-k] [-c] [-v]\n"
210210
"\n"
211+
"List all known identities, keys, and certificates.\n"
212+
"\n"
211213
"Options");
212214
description.add_options()
213215
("help,h", "produce help message")

0 commit comments

Comments
 (0)