aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/args.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-01-25 14:38:15 +0100
committerEelco Dolstra <edolstra@gmail.com>2021-01-25 14:38:15 +0100
commitb159d23800eec55412621a0b3e6c926a1dbb1755 (patch)
tree2d9e4b911548c7f1668bdd507a8757cd70658445 /src/libutil/args.hh
parent488a826842296c9c2933fb53cc884ed8518f9110 (diff)
Make '--help' do the same as 'help' (i.e. show a manpage)
Diffstat (limited to 'src/libutil/args.hh')
-rw-r--r--src/libutil/args.hh14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/libutil/args.hh b/src/libutil/args.hh
index 3783bc84f..fda7852cd 100644
--- a/src/libutil/args.hh
+++ b/src/libutil/args.hh
@@ -20,8 +20,6 @@ public:
wrong. */
void parseCmdline(const Strings & cmdline);
- virtual void printHelp(const string & programName, std::ostream & out);
-
/* Return a short one-line description of the command. */
virtual std::string description() { return ""; }
@@ -115,8 +113,6 @@ protected:
virtual bool processFlag(Strings::iterator & pos, Strings::iterator end);
- virtual void printFlags(std::ostream & out);
-
/* Positional arguments. */
struct ExpectedArg
{
@@ -223,8 +219,6 @@ public:
MultiCommand(const Commands & commands);
- void printHelp(const string & programName, std::ostream & out) override;
-
bool processFlag(Strings::iterator & pos, Strings::iterator end) override;
bool processArgs(const Strings & args, bool finish) override;
@@ -234,14 +228,6 @@ public:
Strings argvToStrings(int argc, char * * argv);
-/* Helper function for rendering argument labels. */
-std::string renderLabels(const Strings & labels);
-
-/* Helper function for printing 2-column tables. */
-typedef std::vector<std::pair<std::string, std::string>> Table2;
-
-void printTable(std::ostream & out, const Table2 & table);
-
struct Completion {
std::string completion;
std::string description;